Function at 0x52df60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74364b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
mov dword [ebp - 0x1c], ecx
jne 0x52df9f
push 0x286
push 0x7afcec
push str.pInfo
jmp 0x52e379
cmp word [esi + 4], 3
je 0x52dfba
push 0x287
push 0x7afcec
push str.pInfo__usType__GIVEBACK_TYPE_EMONEY
jmp 0x52e379
mov eax, dword [ebp + 8]
test eax, eax
je 0x52e36a
lea ebx, [eax + 8]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0xe0]
test al, al
je 0x52e36a
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x828]
push ecx
push 0x79a1ac
push str.SELECT_id_account_id_emoney_chk_sum_FROM__s_WHERE_id_u_LIMIT_1
push edx
mov byte [ebp + 0xf], 0
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea edx, [ebp - 0x828]
mov eax, dword [ecx]
push 1
push edx
call dword [eax]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
mov dword [ebp - 4], 0
je 0x52e32d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
test eax, eax
jbe 0x52e32d
mov edx, dword [edi]
push str.emoney
mov ecx, edi
call dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
push str.emoney2
mov ecx, edi
call dword [eax + 0x20]
mov edx, dword [edi]
push str.chk_sum
mov ecx, edi
mov dword [ebp - 0x20], eax
call dword [edx + 0x20]
mov eax, dword [edi]
push str.account_id
mov ecx, edi
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [esi + 8], ecx
jbe 0x52e096
mov edx, dword [ebx]
push 0x7b0240
push ebx
call dword [edx + 0x1b4]
mov eax, dword [edi]
add esp, 8
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
jmp 0x52e38b
push 0x24
call fcn.005d7e60
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x52e0b6
mov ecx, eax
call fcn.005d7f00
mov ebx, eax
jmp 0x52e0b8
xor ebx, ebx
mov dword [ebp - 0x24], ebx
test ebx, ebx
mov byte [ebp - 4], 2
jne 0x52e0f7
push 0x29f
push 0x7afcec
push str.pItem
push str.CHECKF
push 0x793720
call fcn.00401080
mov edx, dword [edi]
add esp, 0x14
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [edx + 4]
jmp 0x52e38b
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx]
push 0xd8
push ecx
push 0xb238f
mov ecx, ebx
call dword [eax + 0x20]
test al, al
jne 0x52e141
push 0x2a1
push 0x7afcec
push str.pItem__CreateByType_ITEMTYPE_GIVEBACK_EMONEY__pInfo__idTarget__ITEMPOSITION_USERLOSTITEM_STORAGE_
push str.IF_OK
push 0x793720
call fcn.00401080
mov edx, dword [ebx]
add esp, 0x14
mov ecx, ebx
mov byte [ebp - 4], 0
call dword [edx + 0x10]
jmp 0x52e342
mov ecx, dword [0x7fd5e4]
mov eax, dword [esi + 0xc]
push eax
mov byte [ebp + 0xf], 1
mov edx, dword [ecx]
call dword [edx + 0x54]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x52e18d
mov ecx, dword [0x7fd5e4]
mov eax, dword [eax + 0x5e4]
push 0x258
push eax
mov edx, dword [ecx]
call dword [edx + 0x40]
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x7fd5e4]
push 0x7b01c8
mov ax, word [eax + 0x7ea]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
mov ecx, dword [esi + 8]
mov eax, dword [ebx]
push 1
push ecx
push 0xd
mov ecx, ebx
call dword [eax + 0x3c]
mov eax, dword [ebp - 0x10]
mov edx, dword [esi + 8]
sub eax, edx
mov edx, dword [ebp - 0x20]
push edx
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00592de0
mov edx, dword [edi]
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push str.emoney
mov ecx, edi
call dword [edx + 0x24]
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
push eax
push str.chk_sum
mov ecx, edi
call dword [edx + 0x24]
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
push 0x22
call fcn.0046fa60
mov ecx, dword [0x7fd5e4]
mov edx, dword [esi + 0x10]
add esp, 0x10
mov eax, dword [ecx]
push edx
call dword [eax + 0x54]
test eax, eax
je 0x52e226
mov edx, dword [esi + 8]
mov ecx, dword [eax + 8]
add eax, 8
push edx
push 0x7b0188
push eax
call dword [ecx + 0x1b4]
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [esi + 8]
xor edx, edx
push eax
mov dx, word [esi + 4]
push ecx
push edx
lea eax, [ebp - 0x428]
push str._d__u__u
push eax
call fcn.0070258b
mov eax, dword [0x7fd600]
add esp, 0x14
test eax, eax
jne 0x52e27b
push 0x17d
push 0x797a90
push str.g_pLeaveWord
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp - 0x10], 0
jmp 0x52e27e
mov dword [ebp - 0x10], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x428]
push 2
push eax
push ecx
mov ecx, dword [ebp - 0x10]
push 0x7e5328
push str.SYSTEM
call fcn.004db250
mov eax, dword [0x7fd600]
test eax, eax
jne 0x52e2d8
push 0x17d
push 0x797a90
push str.g_pLeaveWord
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp - 0x10], 0
jmp 0x52e2db
mov dword [ebp - 0x10], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [esi + 0x10]
push eax
lea eax, [ebp - 0x428]
push 3
push eax
lea edx, [esi + 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
push edx
push str.SYSTEM
call fcn.004db250
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0x34]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.0052e9b0
mov edx, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 0
call dword [edx + 0x10]
jmp 0x52e342
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx]
push ecx
push 0x7b016c
push ebx
call dword [eax + 0x1b4]
add esp, 0xc
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x52e354
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x288
push 0x7afcec
push str.pUser__pUser__IsGM__
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8