Function at 0x52f520
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7436fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 0x18], ecx
jne 0x52f583
push 0x492
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]
cmp edi, ebx
jne 0x52f5c0
push 0x493
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], 2
je 0x52f5fd
push 0x494
push 0x7afcec
push str.pInfo__usType__GIVEBACK_TYPE_EUDEMON
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 + 8]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push 0x79a140
lea edx, [ebp - 0x824]
push str.SELECT__FROM__s_WHERE_player_id_u_AND_id_u_LIMIT_1
push edx
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x14
lea edx, [ebp - 0x824]
mov eax, dword [ecx]
push 1
push edx
call dword [eax]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x52fa1c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
je 0x52fa1c
push 0x24
call fcn.005d7e60
add esp, 4
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x52f671
mov ecx, eax
call fcn.005d7f00
mov ebx, eax
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x24], ebx
test ebx, ebx
mov byte [ebp - 4], 2
jne 0x52f6c3
push 0x4a5
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 eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x1c]
test al, al
jne 0x52f71e
push 0x4a7
push 0x7afcec
push str.pItem__CreateByEudemonRes_pRes_
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
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
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x44]
mov esi, eax
test esi, esi
jne 0x52f751
push 0x4aa
push 0x7afcec
push str.pData
push str.IF_OK
push 0x793720
call fcn.00401080
mov esi, dword [ebp - 0x1c]
add esp, 0x14
jmp 0x52f6f0
mov ecx, dword [0x7fd5e4]
mov edx, dword [edi + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x52f799
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 0x7b0110
mov ax, word [eax + 0x7ea]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
push eax
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0052e7e0
mov edx, dword [edi + 0xc]
mov ecx, dword [ebp - 0x18]
push edx
call fcn.0052e890
mov ecx, dword [esi + 8]
push 4
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi + 0x10]
and eax, 0xffff8007
push ecx
push 0x29
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.006948d0
mov edx, dword [edi + 0x10]
mov ecx, esi
push edx
push 0x2a
call fcn.006948d0
push 0xd8
push 0x2b
mov ecx, esi
call fcn.006948d0
push 0
push 0x2d
mov ecx, esi
call fcn.006948d0
mov eax, dword [ebp - 0x10]
mov ecx, esi
push eax
push 4
call fcn.006948d0
push 0
push 0x11
mov ecx, esi
call fcn.006948d0
push 0
push 0x2c
mov ecx, esi
call fcn.006948d0
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x52f847
push 0xbd
push 0x7b00cc
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x52f850
mov byte [esi + 4], 0
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov ecx, dword [0x7fd5e4]
mov edx, dword [edi + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x52f8ff
mov ecx, dword [esi + 8]
push 0x28
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x7fd504]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x52f8a4
push 0x18f
push 0x797a90
push str.g_pItemType
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor ecx, ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004f0bb0
test eax, eax
jne 0x52f8d4
push 0x4d2
push 0x7afcec
push str.pItemType
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x52f8ff
mov ecx, dword [ebp - 0x14]
push 1
mov ebx, dword [ecx + 8]
lea edx, [ecx + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
push eax
mov eax, dword [ebp - 0x14]
push 0x7afff8
push eax
call dword [ebx + 0x1b4]
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov esi, dword [esi + 8]
push 0x28
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
mov ecx, dword [edi]
xor edx, edx
mov dx, word [edi + 4]
push ecx
push eax
push edx
lea eax, [ebp - 0x424]
push str._d__u__u
push eax
call fcn.0070258b
mov esi, dword [0x7fd600]
add esp, 0x14
test esi, esi
jne 0x52f955
push 0x17d
push 0x797a90
push str.g_pLeaveWord
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
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
push 0x7e5328
push str.SYSTEM
mov ecx, esi
call fcn.004db250
mov esi, dword [0x7fd600]
test esi, esi
jne 0x52f9a6
push 0x17d
push 0x797a90
push str.g_pLeaveWord
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
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
push edx
push str.SYSTEM
mov ecx, esi
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 ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx]
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
cmp esi, ebx
mov dword [ebp - 4], 0xffffffff
je 0x52fa2e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 6
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8