Function at 0x5de320
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
test eax, eax
push edi
mov dword [ebp - 4], esi
jne 0x5de361
push 0x26
push 0x7c0134
push str.nType____STORE_NONE
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, ecx
jne 0x5de37c
cmp edi, dword [esi + 0xc]
jne 0x5de37c
cmp ebx, dword [esi + 0x10]
je 0x5de625
mov dword [esi + 8], eax
add eax, 0xffffff37
cmp eax, 0xf
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
ja case.0x5de397.206
xor ecx, ecx
mov cl, byte [eax + 0x5de648]
jmp dword [ecx*4 + 0x5de630]
mov byte [esi + 0x14], 0xa
jmp 0x5de3c0
mov byte [esi + 0x14], 0x14
jmp 0x5de3c0
mov byte [esi + 0x14], 0x1e
jmp 0x5de3c0
mov byte [esi + 0x14], 0x3c
jmp 0x5de3c0
mov byte [esi + 0x14], 0x82
jmp 0x5de3c0
mov byte [esi + 0x14], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5de3cb
mov edx, dword [ecx]
call dword [edx]
push 1
call fcn.005d72f0
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x5de405
push 0x50
push 0x7c0134
push str.m_setItem
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
mov esi, dword [esi + 8]
mov byte [ebp + 0xb], 0
mov al, byte [eax + 0x14]
cmp al, 0x3c
jne 0x5de49b
test ebx, ebx
jne 0x5de45d
push esi
push edi
push 0x79a1d8
lea ecx, [ebp - 0x404]
push str.SELECT__FROM__s_WHERE_owner_id_u__position_d
push ecx
call fcn.0070258b
add esp, 0x14
lea edx, [ebp - 0x804]
push esi
push edi
push 0x79a140
push str.SELECT__FROM__s_WHERE_owner_id_u__position_d
push edx
call fcn.0070258b
add esp, 0x14
mov byte [ebp + 0xb], 1
jmp 0x5de4ff
push ebx
push esi
push edi
push 0x79a1d8
lea eax, [ebp - 0x404]
push str.SELECT__FROM__s_WHERE_owner_id_u__position_d__player_id_u_LIMIT_6
push eax
call fcn.0070258b
add esp, 0x18
lea ecx, [ebp - 0x804]
push ebx
push esi
push edi
push 0x79a140
push str.SELECT__FROM__s_WHERE_owner_id_u__position_d__player_id_u_LIMIT_6
push ecx
call fcn.0070258b
add esp, 0x18
mov byte [ebp + 0xb], 1
jmp 0x5de4ff
cmp al, 0x82
jne 0x5de4e1
push 0x19
push ebx
push esi
push edi
push 0x79a1d8
lea edx, [ebp - 0x404]
push str.SELECT__FROM__s_WHERE_owner_id_u__position_d__player_id_u_LIMIT__d
push edx
call fcn.0070258b
add esp, 0x1c
lea eax, [ebp - 0x804]
push 0x19
push ebx
push esi
push edi
push 0x79a140
push str.SELECT__FROM__s_WHERE_owner_id_u__position_d__player_id_u_LIMIT__d
push eax
call fcn.0070258b
add esp, 0x1c
mov byte [ebp + 0xb], 1
jmp 0x5de4ff
push 0x64
push ebx
push esi
push edi
push 0x79a1d8
lea ecx, [ebp - 0x404]
push str.SELECT__FROM__s_WHERE_owner_id_u__position_d__player_id_u__LIMIT__d
push ecx
call fcn.0070258b
add esp, 0x1c
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x404]
push 1
push eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
mov edi, eax
test edi, edi
je 0x5de596
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp + 0x10], 0
call dword [edx + 0x60]
test eax, eax
jbe 0x5de58f
call fcn.004d6240
mov esi, eax
test esi, esi
jne 0x5de554
push 0x7a
push 0x7c0134
push str.pItem
push str.ASSERT
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5de576
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x18]
test al, al
je 0x5de56e
mov ecx, dword [ebp - 4]
push esi
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
call dword [edx + 0xc]
jmp 0x5de576
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov esi, dword [ebp + 0x10]
mov edx, dword [edi]
inc esi
mov ecx, edi
mov dword [ebp + 0x10], esi
call dword [edx + 0x64]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
cmp esi, eax
jb 0x5de529
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov al, byte [ebp + 0xb]
test al, al
je 0x5de625
mov eax, dword [ebx]
lea ecx, [ebp - 0x804]
push 1
push ecx
mov ecx, ebx
call dword [eax]
mov edi, eax
test edi, edi
je 0x5de625
mov edx, dword [edi]
mov ecx, edi
xor ebx, ebx
call dword [edx + 0x60]
test eax, eax
jbe 0x5de625
call fcn.004d6240
mov esi, eax
test esi, esi
jne 0x5de5f1
push 0x90
push 0x7c0134
push str.pItem
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5de612
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x1c]
test al, al
je 0x5de60b
mov ecx, dword [ebp - 4]
push esi
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
call dword [edx + 0xc]
jmp 0x5de612
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [edi]
mov ecx, edi
inc ebx
call dword [edx + 0x64]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
cmp ebx, eax
jb 0x5de5c3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10