Function at 0x52da80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74361b
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 - 0x18], ecx
jne 0x52dabf
push 0x1ea
push 0x7afcec
push str.pInfo
jmp 0x52df2f
cmp word [edi + 4], 2
je 0x52dada
push 0x1eb
push 0x7afcec
push str.pInfo__usType__GIVEBACK_TYPE_EUDEMON
jmp 0x52df2f
mov eax, dword [ebp + 8]
test eax, eax
je 0x52df20
lea ebx, [eax + 8]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0xe0]
test al, al
je 0x52df20
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
push ecx
push edx
push 0x79a140
lea eax, [ebp - 0x828]
push str.SELECT__FROM__s_WHERE_player_id_u_AND_id_u_LIMIT_1
push eax
mov byte [ebp + 0xf], 0
call fcn.0070258b
mov ecx, dword [0x7fd5f0]
add esp, 0x14
lea eax, [ebp - 0x828]
mov edx, dword [ecx]
push 1
push eax
call dword [edx]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
test esi, esi
mov dword [ebp - 4], 0
je 0x52dee7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
jbe 0x52dee7
push 0x24
call fcn.005d7e60
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x52db78
mov ecx, eax
call fcn.005d7f00
mov ebx, eax
jmp 0x52db7a
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
test ebx, ebx
mov byte [ebp - 4], 2
jne 0x52dbbc
push 0x1f9
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 0x52df41
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x1c]
test al, al
jne 0x52dbf9
push 0x1fb
push 0x7afcec
push str.pItem__CreateByEudemonRes_pRes_
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 0x52def8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x44]
mov esi, eax
test esi, esi
jne 0x52dc3a
push 0x1fe
push 0x7afcec
push str.pData
push str.IF_OK
push 0x793720
call fcn.00401080
mov edx, dword [ebx]
mov esi, dword [ebp - 0x20]
add esp, 0x14
mov ecx, ebx
mov byte [ebp - 4], 0
call dword [edx + 0x10]
jmp 0x52def8
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 0x52dc86
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 0x52dd34
push 0xbd
push 0x7b00cc
push str.m_pData
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x52dd3d
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 0x52ddec
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 0x52dd91
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 0x52ddc1
push 0x228
push 0x7afcec
push str.pItemType
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x52ddec
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 - 0x1c]
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 - 0x428]
push str._d__u__u
push eax
call fcn.0070258b
mov esi, dword [0x7fd600]
add esp, 0x14
test esi, esi
jne 0x52de42
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 - 0x428]
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 0x52de93
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 - 0x428]
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.0052e9b0
mov edx, dword [ebx]
mov esi, dword [ebp - 0x20]
mov ecx, ebx
mov byte [ebp - 4], 0
call dword [edx + 0x10]
jmp 0x52def8
mov eax, dword [ebx]
push 0x7affc0
push ebx
call dword [eax + 0x1b4]
add esp, 8
test esi, esi
mov dword [ebp - 4], 0xffffffff
je 0x52df0a
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 0x1ec
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