Toxic, can you help me some more?
I've found sell item function, it's address is 005DC430, and here's the function itself:
005DC430 sub_5DC430 proc near ; CODE XREF: sub_5C7FF0+33p
005DC430
005DC430 arg_0= dword ptr 4
005DC430 arg_4= dword ptr 8
005DC430
005DC430 push ebx
005DC431 push ebp
005DC432 push esi
005DC433 mov esi, [esp+0Ch+arg_0]
005DC437 test esi, esi
005DC439 push edi
005DC43A jz short loc_5DC4A4
005DC43C mov eax, [esp+10h+arg_4]
005DC440 test eax, eax
005DC442 jz short loc_5DC4A4
005DC444 lea edi, [esi+esi*2]
005DC447 shl edi, 2
005DC44A lea ebp, [edi+0Eh]
005DC44D push ebp
005DC44E call sub_743810
005DC453 mov ebx, eax
005DC455 add esp, 4
005DC458 test ebx, ebx
005DC45A jz short loc_5DC4A4
005DC45C lea eax, [ebx+2]
005DC45F lea ecx, [edi+4]
005DC462 mov word ptr [ebx], 25h
005DC467 push ebp ; Size
005DC468 mov dword ptr [eax], 2
005DC46E mov [eax+4], ecx
005DC471 add eax, 8
005DC474 mov ecx, edi
005DC476 mov edx, ecx
005DC478 push ebx ; Src
005DC479 mov [eax], esi
005DC47B mov esi, [esp+18h+arg_4]
005DC47F lea edi, [eax+4]
005DC482 shr ecx, 2
005DC485 rep movsd
005DC487 mov ecx, edx
005DC489 and ecx, 3
005DC48C rep movsb
005DC48E mov eax, dword_98ADDC
005DC493 mov ecx, [eax+20h]
005DC496 call sub_5BD9A0
005DC49B push ebx
005DC49C call sub_743820
005DC4A1 add esp, 4
005DC4A4
005DC4A4 loc_5DC4A4: ; CODE XREF: sub_5DC430+Aj
005DC4A4 ; sub_5DC430+12j ...
005DC4A4 pop edi
005DC4A5 pop esi
005DC4A6 pop ebp
005DC4A7 pop ebx
005DC4A8 retn
005DC4A8 sub_5DC430 endp
Can you help me find correct direct injection code? I really need it. But I can't figure out how to make it work. (
I've also found injection code for it, but it doesn't work for me:
(translated from Chineese)
// Trading CALL. Kind of the base address can be replaced
pushad
sub esp, $c
mov eax, p1 // item ID (refer to the type or system ID)
mov dword ptr [esp], eax
mov eax, p2 // where the number of grid
mov dword ptr [esp+4], eax
mov eax, p3 // the number of transactions
mov dword ptr [esp+8], eax
push esp // Push data structure
push 1
call Address
add esp, 8
add esp, $c
popad