Function at 0x5a6140
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a6395
sub esp, 0x5c
mov eax, 0
mov dword [esp + 0x58], eax
mov byte [esp + 0x27], 0
mov byte [esp + 0x7c], 0
lea eax, [0x612380]
mov dword [esp], eax
call fcn.0040c1e0
mov edi, dword [esp + 4]
mov dword [esp + 0x3c], edi
mov eax, dword [0x7f8db0]
test eax, eax
jne 0x5a6197
lea esi, [esp + 0x60]
call fcn.00464ac2
jmp 0x5a61b1
lea eax, [0x612380]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
call fcn.004116d0
lea eax, [0x66f23c]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
call fcn.005a31d0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea eax, [0x62a25a]
mov dword [esp], eax
mov dword [esp + 4], 0x33
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004e18f0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
lea edx, [0x5eab00]
mov dword [esp], edx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x34]
mov dword [edx], ecx
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x5a62da
mov dword [edx + 4], eax
jmp 0x5a62e2
lea edi, [edx + 4]
call fcn.00464380
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test ecx, ecx
jne 0x5a6378
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [0x5a63a0]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ecx
mov byte [esp + 0x27], 1
mov dword [esp], eax
call fcn.0056df50
movzx eax, byte [esp + 4]
mov byte [esp + 0x7c], al
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
call eax
add esp, 0x5c
ret
test edx, edx
je 0x5a637f
mov edx, dword [edx + 4]
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.00436760
nop
call fcn.00435d10
add esp, 0x5c
ret
call fcn.00462f70
jmp fcn.005a6140