Function at 0x52fa50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74372b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x18], ecx
jne 0x52fab1
push 0x4ed
push 0x7afcec
push str.pVirGm
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x52faee
push 0x4ee
push 0x7afcec
push str.pInfo
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp word [edi + 4], 3
je 0x52fb2b
push 0x4ef
push 0x7afcec
push str.pInfo__usType__GIVEBACK_TYPE_EMONEY
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x824]
push eax
push 0x79a1ac
push str.SELECT_id_account_id_emoney_chk_sum_FROM__s_WHERE_id_u_LIMIT_1
push ecx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x10
lea eax, [ebp - 0x824]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
mov dword [ebp - 4], 0
je 0x52fecb
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
je 0x52fecb
mov eax, dword [esi]
push str.emoney
mov ecx, esi
call dword [eax + 0x20]
mov edx, dword [esi]
mov ebx, eax
push str.emoney2
mov ecx, esi
mov dword [ebp + 0xc], ebx
call dword [edx + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push str.chk_sum
mov ecx, esi
call dword [eax + 0x20]
mov edx, dword [esi]
push str.account_id
mov ecx, esi
call dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
cmp eax, ebx
jbe 0x52fbe6
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x24
call fcn.005d7e60
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x52fc06
mov ecx, eax
call fcn.005d7f00
mov ebx, eax
jmp 0x52fc08
xor ebx, ebx
mov dword [ebp - 0x20], ebx
test ebx, ebx
mov byte [ebp - 4], 2
jne 0x52fc57
push 0x508
push 0x7afcec
push str.pItem
push str.CHECKF
push 0x793720
call fcn.00401080
mov edx, dword [esi]
add esp, 0x14
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x10]
mov eax, dword [ebx]
push 0xd8
push ecx
push 0xb238f
mov ecx, ebx
call dword [eax + 0x20]
test al, al
jne 0x52fcbf
push 0x50a
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]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x7fd5e4]
mov eax, dword [edi + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x54]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x52fd07
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 - 0x14]
mov ecx, dword [0x7fd5e4]
push 0x7b01c8
mov ax, word [eax + 0x7ea]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
mov ecx, dword [edi + 8]
mov eax, dword [ebx]
push 1
push ecx
push 0xd
mov ecx, ebx
call dword [eax + 0x3c]
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 8]
sub eax, edx
mov edx, dword [ebp - 0x1c]
push edx
mov dword [ebp + 0xc], eax
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00592de0
mov edx, dword [esi]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
push str.emoney
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [ebp - 0x10]
mov edx, dword [esi]
push eax
push str.chk_sum
mov ecx, esi
call dword [edx + 0x24]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
push eax
push ecx
push edx
push 0x22
call fcn.0046fa60
mov ecx, dword [0x7fd5e4]
mov edx, dword [edi + 0x10]
add esp, 0x10
mov eax, dword [ecx]
push edx
call dword [eax + 0x54]
test eax, eax
je 0x52fda0
mov edx, dword [edi + 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 [edi]
mov ecx, dword [edi + 8]
xor edx, edx
push eax
mov dx, word [edi + 4]
push ecx
push edx
lea eax, [ebp - 0x424]
push str._d__u__u
push eax
call fcn.0070258b
mov eax, dword [0x7fd600]
add esp, 0x14
test eax, eax
jne 0x52fdf5
push 0x17d
push 0x797a90
push str.g_pLeaveWord
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp + 0xc], 0
jmp 0x52fdf8
mov dword [ebp + 0xc], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [edi + 0xc]
push eax
lea eax, [ebp - 0x424]
push 2
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push 0x7e5328
push str.SYSTEM
call fcn.004db250
mov eax, dword [0x7fd600]
test eax, eax
jne 0x52fe52
push 0x17d
push 0x797a90
push str.g_pLeaveWord
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
mov dword [ebp + 0xc], 0
jmp 0x52fe55
mov dword [ebp + 0xc], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [edi + 0x10]
push eax
lea eax, [ebp - 0x424]
push 3
push eax
lea edx, [edi + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
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 - 0x18]
push eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.00530390
mov edx, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 0
call dword [edx + 0x10]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test esi, esi
mov dword [ebp - 4], 0xffffffff
je 0x52fedd
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 4
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8