Function at 0x52e3a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74367b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 0x20], ecx
jne 0x52e3df
push 0x2dc
push 0x7afcec
push str.pInfo
jmp 0x52e7af
cmp word [edi + 4], 4
je 0x52e3fa
push 0x2dd
push 0x7afcec
push str.pInfo__usType__GIVEBACK_TYPE_MONEY
jmp 0x52e7af
mov eax, dword [ebp + 8]
test eax, eax
je 0x52e7a0
lea ebx, [eax + 8]
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
call dword [eax + 0xe0]
test al, al
je 0x52e7a0
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x828]
push ecx
push 0x79a1ac
push str.SELECT_id_money_money_saved_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 esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
mov dword [ebp - 4], 0
je 0x52e763
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
jbe 0x52e763
mov edx, dword [esi]
push 0x7a7594
mov ecx, esi
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [esi]
push str.money_saved
mov ecx, esi
mov dword [ebp - 0x1c], ebx
call dword [eax + 0x38]
mov dword [ebp - 0x18], eax
mov eax, ebx
mov ebx, dword [ebp - 0x18]
xor ecx, ecx
add eax, ebx
mov ebx, dword [edi + 8]
mov dword [ebp - 0x14], edx
adc ecx, edx
xor edx, edx
cmp edx, ecx
jb 0x52e4d8
ja 0x52e4b1
cmp ebx, eax
jbe 0x52e4d8
mov eax, dword [ebp - 0x10]
push 0x7b039c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1b4]
mov edx, dword [esi]
add esp, 8
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [edx + 4]
jmp 0x52e7c1
push 0x24
call fcn.005d7e60
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x52e4f8
mov ecx, eax
call fcn.005d7f00
mov ebx, eax
jmp 0x52e4fa
xor ebx, ebx
mov dword [ebp - 0x28], ebx
test ebx, ebx
mov byte [ebp - 4], 2
jne 0x52e539
push 0x2f3
push 0x7afcec
push str.pItem
push str.CHECKF
push 0x793720
call fcn.00401080
mov eax, dword [esi]
add esp, 0x14
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
jmp 0x52e7c1
mov eax, dword [edi + 0x10]
mov edx, dword [ebx]
push 0xd8
push eax
push 0xb238e
mov ecx, ebx
call dword [edx + 0x20]
test al, al
jne 0x52e583
push 0x2f5
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 [ebx]
add esp, 0x14
mov ecx, ebx
mov byte [ebp - 4], 0
call dword [edx + 0x10]
jmp 0x52e778
mov ecx, dword [0x7fd5e4]
mov eax, dword [edi + 0xc]
push eax
mov byte [ebp + 0xf], 1
mov edx, dword [ecx]
call dword [edx + 0x54]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x52e5cf
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 - 0x10]
mov ecx, dword [0x7fd5e4]
push 0x7b0324
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 ecx, dword [edi + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x52e5fb
mov edx, dword [ebp - 0x18]
sub ecx, eax
sub edx, ecx
mov ecx, dword [ebp - 0x14]
sbb ecx, 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 8]
cmp ecx, eax
jb 0x52e604
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 - 0x14]
mov edx, dword [ebp - 0x18]
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 [edi + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 0x54]
test eax, eax
je 0x52e65c
mov edx, dword [edi + 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 [edi]
mov ecx, dword [edi + 8]
xor edx, edx
push eax
mov dx, word [edi + 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 0x52e6b1
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 0x52e6b4
mov dword [ebp - 0x10], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [edi + 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 0x52e70e
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 0x52e711
mov dword [ebp - 0x10], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [edi + 0x10]
push eax
lea eax, [ebp - 0x428]
push 3
push eax
lea edx, [edi + 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 - 0x20]
push eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0052e9b0
mov edx, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 0
call dword [edx + 0x10]
jmp 0x52e778
mov ecx, dword [edi + 0xc]
mov eax, dword [ebx]
push ecx
push 0x7b016c
push ebx
call dword [eax + 0x1b4]
add esp, 0xc
test esi, esi
mov dword [ebp - 4], 0xffffffff
je 0x52e78a
mov edx, dword [esi]
mov ecx, esi
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 0x2de
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