Function at 0x595440
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59588a
sub esp, 0x50
lea eax, [0x5e9220]
mov dword [esp], eax
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x595481
mov ecx, dword [esp + 0x60]
mov dword [eax], ecx
jmp 0x59549f
lea ecx, [0x5e9220]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
call fcn.004116d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 0x24]
cmp dword [ecx + 0x28], 9
jne 0x59566f
mov dword [esp], edx
lea eax, [0x61bf39]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00402f60
movzx eax, byte [esp + 0xc]
test al, al
je 0x59566f
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x595533
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x59552b
mov ecx, dword [esp + 0x5c]
cmp ecx, 0xe
je 0x5954f9
mov edx, 1
jmp 0x595539
mov eax, dword [esp + 0x58]
mov dword [esp], eax
lea ecx, [0x61daa2]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xe
call fcn.00402f60
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x5c]
mov edx, eax
mov eax, dword [esp + 0x54]
jmp 0x595539
mov ecx, dword [esp + 0x5c]
xor edx, edx
jmp 0x595539
mov ecx, dword [esp + 0x5c]
xor edx, edx
test dl, dl
je 0x59566f
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
lea eax, [0x62c25c]
mov dword [esp], eax
mov dword [esp + 4], 0x90
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004e18f0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
lea edx, [0x5eaf80]
mov dword [esp], edx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
lea ecx, [0x5f1960]
mov dword [eax], ecx
lea edx, [0x66df0c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 4], edx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
mov ebx, dword [0x7f8db0]
test ebx, ebx
jne 0x59560c
mov dword [edx + 0xc], eax
jmp 0x595614
lea edi, [edx + 0xc]
call fcn.00464380
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 2
mov dword [esp + 0xc], 2
call ecx
mov eax, dword [esp + 0x54]
mov dword [eax + 0x14], 0xe
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x595659
lea ecx, [0x61daa2]
mov dword [eax + 0x10], ecx
jmp 0x59566b
lea edi, [eax + 0x10]
mov ecx, eax
lea eax, [0x61daa2]
call fcn.00464380
mov eax, ecx
mov ecx, dword [esp + 0x5c]
call fcn.005cc7f0
mov eax, dword [esp]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov edx, dword [esp + 0x58]
mov dword [esp], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x627c9a]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x40]
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 + 0x30], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
lea edx, [0x5eaf80]
mov dword [esp], edx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
lea ecx, [0x5f1960]
mov dword [eax], ecx
lea edx, [0x66df0c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 4], edx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x28]
mov dword [edx + 8], ecx
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x595788
mov dword [edx + 0xc], eax
jmp 0x595790
lea edi, [edx + 0xc]
call fcn.00464380
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 2
mov dword [esp + 0xc], 2
call ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0xc], eax
mov eax, dword [0x7f8db0]
test eax, eax
jne 0x5957da
mov edx, dword [esp + 0x58]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x2c], edx
jmp 0x5957f2
lea edi, [ecx + 8]
mov eax, dword [esp + 0x58]
call fcn.00464380
lea edi, [ecx + 0x2c]
mov eax, dword [esp + 0x34]
call fcn.00464380
mov edx, dword [ecx + 0x30]
mov ebx, dword [edx + 0x44]
mov ebp, dword [edx + 0x4c]
mov esi, dword [edx + 0x48]
inc esi
cmp ebp, esi
jae 0x59585d
mov dword [esp + 0x24], edx
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x60abc0]
mov dword [esp + 0x10], eax
call fcn.0044b300
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov dword [ebx + 0x4c], edx
mov edx, dword [0x7f8db0]
test edx, edx
jne 0x59584b
mov dword [ebx + 0x44], eax
jmp 0x595853
lea edi, [ebx + 0x44]
call fcn.00464380
mov edx, ebx
mov esi, ecx
mov ebx, eax
mov ecx, dword [esp + 0x54]
mov dword [edx + 0x48], esi
mov edx, dword [0x7f8db0]
lea edi, [ebx + esi*4 - 4]
test edx, edx
jne 0x595874
mov dword [ebx + esi*4 - 4], ecx
jmp 0x59587b
mov eax, ecx
call fcn.00464380
mov eax, dword [ecx + 0x30]
mov dword [esp], eax
call fcn.00597070
add esp, 0x50
ret
call fcn.00462f70
jmp fcn.00595440