Function at 0x5b1890
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x30c]
cmp eax, dword [ecx + 8]
jbe 0x5b1cfa
sub esp, 0x38c
mov ecx, dword [esp + 0x394]
cmp ecx, 0x20
jne 0x5b1c98
mov edx, dword [esp + 0x3ac]
cmp edx, 0x40
jne 0x5b18dd
mov edx, dword [esp + 0x3a8]
movzx ebx, byte [edx + 0x3f]
test bl, 0xe0
je 0x5b18ec
mov byte [esp + 0x3c4], 0
add esp, 0x38c
ret
lea edi, [esp + 0x2d8]
xor eax, eax
call fcn.00471aa8
lea ecx, [esp + 0x2d8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x390]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x394]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x398]
mov dword [esp + 0xc], ebx
call fcn.005a9660
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x5b1945
mov byte [esp + 0x3c4], 0
add esp, 0x38c
ret
mov dword [esp + 0x388], edx
nop
lea edi, [esp + 0x208]
xor eax, eax
call fcn.00471a9c
mov dword [esp + 0x2d4], 7
lea ecx, [esp + 0x208]
mov dword [esp], ecx
call fcn.00594230
mov ecx, dword [esp + 0x3b8]
test ecx, ecx
je 0x5b1a15
mov eax, dword [esp + 0x3b4]
test eax, eax
jne 0x5b1995
lea eax, [0x93ed20]
lea edx, [esp + 0x208]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
call fcn.00595100
mov eax, dword [esp + 0x3c0]
mov byte [esp + 0x7f], al
lea ecx, [esp + 0x208]
mov dword [esp], ecx
lea edx, [esp + 0x7f]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00595100
mov eax, dword [esp + 0x3bc]
test eax, eax
jne 0x5b19f3
lea eax, [0x93ed20]
lea ecx, [esp + 0x208]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
call fcn.00595100
lea eax, [esp + 0x208]
mov dword [esp], eax
mov ecx, dword [esp + 0x3a8]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x20
mov edx, dword [esp + 0x3b0]
mov dword [esp + 0xc], edx
call fcn.00595100
lea eax, [esp + 0x208]
mov dword [esp], eax
mov ecx, dword [esp + 0x390]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x394]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x398]
mov dword [esp + 0xc], ecx
call fcn.00595100
lea eax, [esp + 0x208]
mov dword [esp], eax
mov ecx, dword [esp + 0x39c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3a0]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x3a4]
mov dword [esp + 0xc], ecx
call fcn.00595100
lea edi, [esp + 0x3f]
xor eax, eax
call fcn.00471ac0
lea ecx, [esp + 0x208]
mov dword [esp], ecx
lea ecx, [esp + 0x3f]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x40
call fcn.00595320
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x1e8]
mov ebx, eax
xor eax, eax
call fcn.00471ac8
lea ecx, [esp + 0x1e8]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x80]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.005aac00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x5b1c80
mov dword [esp + 0x380], ecx
mov ecx, dword [esp + 0x3b0]
add ecx, 0xffffffe0
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x3a8]
lea ebx, [edx + 0x20]
lea edi, [esp + 0x1c8]
xor eax, eax
call fcn.00471ac8
lea ecx, [esp + 0x1c8]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x20
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xc], ecx
call fcn.005aae30
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x5b1c71
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x384], ecx
lea edi, [esp + 0x128]
xor eax, eax
call fcn.00471aa8
lea ecx, [esp + 0x128]
mov dword [esp], ecx
mov ecx, dword [esp + 0x388]
mov dword [esp + 4], ecx
call fcn.005aaa80
mov ecx, dword [esp + 8]
mov dword [esp + 0x37c], ecx
lea edi, [esp + 0x88]
xor eax, eax
call fcn.00471aa8
lea ecx, [esp + 0x88]
mov dword [esp], ecx
mov ecx, dword [esp + 0x380]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x37c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x384]
mov dword [esp + 0xc], ecx
call fcn.005b0f20
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x378], ecx
lea edi, [esp + 0x1f]
xor eax, eax
call fcn.00471ac8
mov ecx, dword [esp + 0x378]
mov dword [esp], ecx
lea ecx, [esp + 0x1f]
mov dword [esp + 4], ecx
call fcn.005a9400
cmp dword [esp + 0xc], 0x20
je 0x5b1c3f
xor eax, eax
jmp 0x5b1c63
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3a8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
call fcn.00402d90
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x3c4], al
add esp, 0x38c
ret
mov byte [esp + 0x3c4], 0
add esp, 0x38c
ret
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x78a618]
mov dword [esp + 4], eax
call fcn.0046a9e0
mov eax, ecx
sar ecx, 0x1f
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xa
call fcn.004828a0
mov dword [esp], 0
lea eax, [0x728179]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
call fcn.00450670
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00465f00
mov eax, dword [esp + 8]
lea ecx, [0x6db180]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.00470430
jmp fcn.005b1890