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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x596480
sub esp, 0xb0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x50], 0
mov ebx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb8]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
jmp 0x595eef
inc eax
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0x3c]
mov ebx, edi
mov ecx, ebp
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x5c], edx
cmp ebp, eax
jle 0x596175
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], esi
mov edi, ebx
mov ebx, dword [ebx + eax*4]
mov dword [esp + 0x58], ebx
mov ebp, dword [ebx + 8]
mov dword [esp + 0x48], ebp
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x28], esi
lea ebx, [ecx - 1]
jmp 0x596421
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0xb4]
mov ebx, dword [esp + 0x24]
jmp 0x595f44
mov ebx, 0xffffffff
cmp ebx, 0xffffffff
jle 0x5960e0
mov ebx, dword [esp + 0x58]
movzx ebp, byte [ebx + 0x20]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5960e4
movzx ebp, byte [ebx + 0x21]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5960e4
call fcn.005cc7f0
mov eax, dword [esp]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov edx, dword [esp + 0x58]
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
lea eax, [0x628502]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea edx, [esp + 0x7c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004e18f0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea edx, [0x5eaf80]
mov dword [esp], edx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
lea ecx, [0x5f1960]
mov dword [eax], ecx
lea edx, [0x66df24]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x60]
mov dword [edx + 8], ecx
mov ebx, dword [0x7f8db0]
test ebx, ebx
jne 0x59609a
mov dword [edx + 0xc], eax
jmp 0x5960a2
lea edi, [edx + 0xc]
call fcn.00464380
mov eax, dword [esp + 0x58]
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 + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0xb4]
jmp 0x5960e4
mov ebx, dword [esp + 0x58]
lea ebp, [ecx + 1]
mov esi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov ecx, esi
mov esi, dword [esp + 0x3c]
cmp esi, ebp
jae 0x596140
mov dword [esp + 0x64], ecx
mov dword [esp + 0x40], ebx
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x5f1960]
mov dword [esp + 0x10], eax
call fcn.0044b300
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x3c], esi
lea esi, [edx + ebp*8 - 4]
mov dword [esi], ebx
lea ebx, [edx + ebp*8 - 8]
mov esi, dword [0x7f8db0]
test esi, esi
jne 0x59615f
mov dword [ebx], ecx
jmp 0x595ed8
mov esi, edi
mov edi, ebx
mov eax, ecx
call fcn.00464380
mov eax, dword [esp + 0x44]
mov edi, esi
jmp 0x595ed8
lea edi, [esp + 0x8c]
xor eax, eax
call fcn.004645c7
lea ecx, [0x596490]
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], esi
lea esi, [esp + 0x50]
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0xb4]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], ebp
mov esi, dword [esp + 0xbc]
mov dword [esp + 0xac], esi
lea esi, [esp + 0x8c]
mov dword [esp + 0x50], esi
xor eax, eax
jmp 0x59621e
mov dword [esp + 0x44], eax
mov ecx, dword [ebx + eax*4]
mov edx, dword [esp + 0x50]
mov ebp, dword [edx]
mov dword [esp], ecx
call ebp
mov eax, dword [esp + 0x44]
inc eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb8]
cmp ebp, eax
jg 0x5961f1
mov esi, dword [esp + 0x70]
mov dword [esp + 0x6c], esi
mov eax, ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x44], ebx
xor edi, edi
xor edi, edi
mov dword [esp + 0x30], edi
xor edi, edi
mov dword [esp + 0x4c], edi
xor edi, edi
mov dword [esp + 0x2c], edi
xor edi, edi
jmp 0x596270
inc edi
mov ebx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0xb8]
mov esi, dword [esp + 0x6c]
cmp edi, ebx
jge 0x596381
mov dword [esp + 0x40], edi
lea esi, [esi + edi*8]
mov ebx, dword [esi]
mov dword [esp + 0x54], ebx
mov esi, dword [esi + 4]
mov dword [esp + 0x34], esi
lea ebp, [ecx - 1]
jmp 0x5963b2
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x20]
jmp 0x5962b2
mov ebx, 0xffffffff
mov ebp, dword [esp + 0xb8]
cmp ebp, ebx
jbe 0x596408
mov ebx, dword [eax + ebx*4]
movzx esi, byte [ebx + 0x21]
xchg esi, eax
test al, al
xchg esi, eax
je 0x5962df
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x4c]
jmp 0x59624c
mov esi, dword [esp + 0x2c]
inc esi
mov ebx, dword [ebx + 0x2c]
mov dword [esp + 0x68], ebx
mov ebp, dword [esp + 0x30]
cmp ebp, esi
jae 0x596342
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5e1940]
mov dword [esp + 0x10], eax
call fcn.0044b300
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov ebp, ecx
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ebp
mov edx, dword [0x7f8db0]
mov ebp, dword [esp + 0x4c]
lea ebx, [ebp + esi*4 - 4]
test edx, edx
jne 0x596362
mov edx, dword [esp + 0x68]
mov dword [ebp + esi*4 - 4], edx
jmp 0x596378
mov edx, edi
mov edi, ebx
mov eax, dword [esp + 0x68]
call fcn.00464380
mov eax, dword [esp + 0xb4]
mov edi, edx
mov edx, dword [esp + 0x30]
jmp 0x59624c
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc8], eax
add esp, 0xb0
ret
dec ebp
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x54]
test ebp, ebp
jl 0x5962ad
cmp ebp, ecx
jae 0x596411
lea ebx, [edx + ebp*8]
mov edx, dword [ebx + 4]
mov ebx, dword [ebx]
cmp edx, esi
jne 0x5963a9
mov dword [esp + 0x20], ebp
mov dword [esp], ebx
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00402f60
movzx eax, byte [esp + 0xc]
test al, al
jne 0x596294
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
jmp 0x5963a9
mov eax, ebx
mov ecx, ebp
call fcn.00464400
mov eax, ebp
call fcn.00464400
mov ebx, dword [esp + 0x24]
dec ebx
mov ebp, dword [esp + 0x48]
test ebx, ebx
jl 0x595f3f
cmp ebx, ecx
jae 0x596478
mov dword [esp + 0x24], ebx
lea ebp, [edx + ebx*8]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp]
cmp ebx, esi
jne 0x596418
mov dword [esp], ebp
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00402f60
movzx eax, byte [esp + 0xc]
test al, al
jne 0x595f26
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xb4]
jmp 0x596418
mov eax, ebx
call fcn.00464400
nop
call fcn.00462f70
jmp fcn.00595e80