Function at 0x5cee70
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5cf179
sub esp, 0x50
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x5cf0e9
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x44], edx
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ebx, [0x7886dc]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.00476760
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x5cef0f
nop
mov ecx, dword [esp + 0x40]
test ecx, ecx
jle 0x5cef08
lea eax, [ecx - 1]
cmp ecx, eax
jb 0x5cf173
mov eax, dword [esp + 0x44]
lea edx, [ecx + eax - 1]
mov dword [esp], edx
lea edx, str.__r:CB
mov dword [esp + 4], edx
mov dword [esp + 8], 1
call fcn.00402d90
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x40]
jmp 0x5cef0a
xor eax, eax
xor eax, 1
jmp 0x5cef15
mov ecx, dword [esp + 0x40]
xor eax, eax
test al, al
jne 0x5cef1f
mov edx, dword [esp + 0x44]
jmp 0x5cef49
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00507970
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5cf0d4
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
test ecx, ecx
jg 0x5cef59
xor eax, eax
jmp 0x5cef80
mov dword [esp], edx
lea eax, [0x71b1fd]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.00402d90
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
test al, al
je 0x5cefc5
nop
test ecx, ecx
jle 0x5cefc1
lea eax, [ecx - 1]
cmp ecx, eax
jb 0x5cf16e
lea eax, [ecx + edx - 1]
mov dword [esp], eax
lea eax, str.__r:CB
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.00402d90
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
jmp 0x5cefc7
xor eax, eax
jmp 0x5cefc7
xor eax, eax
test al, al
jne 0x5cf00a
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.005063d0
movzx eax, byte [esp + 0x18]
lea edi, [esp + 0x30]
lea esi, [esp + 8]
call fcn.00471fb8
lea edi, [esp + 0x20]
lea esi, [esp + 0x30]
call fcn.00471fb8
test al, al
je 0x5cf000
lea eax, [esp + 0x20]
jmp 0x5cf002
xor eax, eax
test eax, eax
je 0x5cf093
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.005bc030
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00465f00
mov eax, dword [esp + 8]
lea ecx, [0x6db180]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x72fd81]
mov dword [esp], eax
mov dword [esp + 4], 0x36
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c2050
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x50
ret
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
call fcn.005cf190
movzx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x60], al
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
add esp, 0x50
ret
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x50
ret
mov dword [esp], eax
call fcn.005bc030
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00465f00
mov eax, dword [esp + 8]
lea ecx, [0x6db180]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x731089]
mov dword [esp], eax
mov dword [esp + 4], 0x3e
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c2050
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x50
ret
call fcn.00471910
call fcn.00471910
nop
call fcn.00470430
jmp fcn.005cee70