Function at 0x52ff00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74375b
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 0x52ff61
push 0x53f
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 ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x52ff9e
push 0x540
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 [ebx + 4], 4
je 0x52ffdb
push 0x541
push 0x7afcec
push str.pInfo__usType__GIVEBACK_TYPE_MONEY
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 [ebx + 0xc]
lea ecx, [ebp - 0x824]
push eax
push 0x79a1ac
push str.SELECT_id_money_money_saved_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 0x530365
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
je 0x530365
mov eax, dword [esi]
push 0x7a7594
mov ecx, esi
call dword [eax + 0x20]
mov edx, dword [esi]
mov edi, eax
push str.money_saved
mov ecx, esi
mov dword [ebp - 0x1c], edi
call dword [edx + 0x38]
xor ecx, ecx
add edi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
adc ecx, edx
mov edx, dword [ebx + 8]
xor eax, eax
cmp eax, ecx
jb 0x53008c
ja 0x530066
cmp edx, edi
jbe 0x53008c
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
pop edi
pop esi
mov eax, 8
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 + 0xc], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x5300ac
mov ecx, eax
call fcn.005d7f00
mov edi, eax
jmp 0x5300ae
xor edi, edi
mov dword [ebp - 0x20], edi
test edi, edi
mov byte [ebp - 4], 2
jne 0x5300fd
push 0x558
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 [ebx + 0x10]
mov eax, dword [edi]
push 0xd8
push ecx
push 0xb238e
mov ecx, edi
call dword [eax + 0x20]
test al, al
jne 0x530165
push 0x55a
push 0x7afcec
push str.pItem__CreateByType_ITEMTYPE_GIVEBACK_MONEY__pInfo__idTarget__ITEMPOSITION_USERLOSTITEM_STORAGE_
push str.IF_OK
push 0x793720
call fcn.00401080
mov edx, dword [edi]
add esp, 0x14
mov ecx, edi
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 [ebx + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x54]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x5301ad
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 + 0xc]
mov ecx, dword [0x7fd5e4]
push 0x7b0324
mov ax, word [eax + 0x7ea]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
mov ecx, dword [ebx + 8]
mov eax, dword [edi]
push 1
push ecx
push 0xd
mov ecx, edi
call dword [eax + 0x3c]
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x5301d9
mov edx, dword [ebp - 0x14]
sub ecx, eax
sub edx, ecx
mov ecx, dword [ebp - 0x10]
sbb ecx, 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 8]
cmp ecx, eax
jb 0x5301e2
mov ecx, eax
mov edx, dword [esi]
sub eax, ecx
push eax
push 0x7a7594
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
push ecx
push edx
push str.money_saved
mov ecx, esi
call dword [eax + 0x40]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [0x7fd5e4]
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 0x54]
test eax, eax
je 0x53023a
mov edx, dword [ebx + 8]
mov ecx, dword [eax + 8]
add eax, 8
push edx
push 0x7b02e4
push eax
call dword [ecx + 0x1b4]
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
xor edx, edx
push eax
mov dx, word [ebx + 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 0x53028f
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 0x530292
mov dword [ebp + 0xc], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [ebx + 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 0x5302ec
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 0x5302ef
mov dword [ebp + 0xc], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [ebx + 0x10]
push eax
lea eax, [ebp - 0x424]
push 3
push eax
lea edx, [ebx + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push str.SYSTEM
call fcn.004db250
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x34]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call fcn.00530390
mov edx, dword [edi]
mov ecx, edi
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 0x530377
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