Function at 0x5d0fd0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x5d18e7
sub esp, 0xc0
mov ebx, dword [esp + 0xc4]
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x5d1000
xor eax, eax
jmp 0x5d104c
mov eax, dword [0x913d88]
mov ecx, dword [0x913d8c]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ecx
add esp, 0xc0
ret
lea eax, [ebx + 1]
mov ebx, dword [esp + 0xc4]
mov ebp, dword [esp + 0xd0]
test ebp, ebp
je 0x5d105c
mov esi, dword [ebp + 8]
jmp 0x5d105e
xor esi, esi
cmp eax, esi
jge 0x5d1191
mov ecx, dword [ebp + 8]
nop
cmp eax, ecx
jae 0x5d18e1
mov dword [esp + 0x88], ebp
mov dword [esp + 0x64], eax
mov ecx, dword [ebp + 4]
lea ebx, [eax + eax*4]
mov edx, dword [ecx + ebx*4 + 0x10]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x64]
cmp ebx, ecx
jae 0x5d18da
mov ebp, dword [esp + 4]
test ebp, ebp
jne 0x5d10f9
mov ebp, dword [esp]
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x5d1042
mov eax, dword [0x913d88]
mov ecx, dword [0x913d8c]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ecx
add esp, 0xc0
ret
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
je 0x5d1114
mov ebp, dword [ebp + 4]
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xbc], eax
lea eax, [0x72d236]
mov dword [esp], eax
mov dword [esp + 4], 0x2c
lea eax, [esp + 0xb8]
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 dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ecx
add esp, 0xc0
ret
call fcn.005cc170
mov eax, dword [esp + 0xd4]
test eax, eax
jne 0x5d11bc
mov ecx, dword [esp]
test ecx, ecx
je 0x5d1610
movzx ecx, byte [ecx + 0x14]
test cl, cl
jne 0x5d1610
test eax, eax
je 0x5d1236
movzx eax, byte [eax + 0x14]
test al, al
je 0x5d1236
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
lea ecx, [esp + 0xc8]
mov dword [esp + 4], ecx
call fcn.005cd2d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5d11fc
mov ecx, dword [esp + 0xd4]
test ecx, ecx
je 0x5d11f6
mov ecx, dword [ecx + 8]
jmp 0x5d11f8
xor ecx, ecx
test ecx, ecx
jne 0x5d1236
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], edx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ebp
add esp, 0xc0
ret
mov eax, dword [esp + 0xd4]
test eax, eax
jne 0x5d1258
call fcn.005cc170
mov eax, dword [esp]
mov dword [esp + 0xd4], eax
test eax, eax
je 0x5d1587
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x14], ecx
call fcn.005cfb60
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5d154d
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x5d12d3
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.005d2b70
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5d1513
mov eax, dword [esp + 0xd4]
test eax, eax
jne 0x5d12e2
xor eax, eax
jmp 0x5d134d
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.005b4480
lea edi, [esp + 0x48]
lea esi, [esp + 0xc]
call fcn.00471f9a
lea edi, [esp + 0x2c]
lea esi, [esp + 0x48]
call fcn.00471f9a
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 0x10]
lea ecx, [0x6de6e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0040c740
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
test al, al
je 0x5d13d8
lea eax, [0x6d9fe0]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [esp + 0x9c], eax
lea ecx, [0x6da060]
mov dword [esp], ecx
call fcn.0040bb90
mov eax, dword [0x93f150]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x5d139a
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0x9c]
jmp 0x5d13b7
call fcn.00471850
mov eax, dword [esp + 0xc4]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov edx, dword [esp + 0x9c]
mov ebx, dword [edx]
mov dword [edi + 8], ebx
mov dword [ecx], eax
mov dword [edx + 4], 1
mov dword [edx + 8], 1
mov dword [edx], ecx
mov ecx, 1
mov ebx, 1
jmp 0x5d145f
lea eax, [0x6da060]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [0x93f150]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x5d13fd
mov eax, dword [esp + 0xc4]
jmp 0x5d140b
call fcn.00471830
mov eax, dword [esp + 0xc4]
mov dword [edi], eax
mov dword [ecx], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x14], ecx
call fcn.005d1bf0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5d14d9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, edx
mov edx, eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x68], ecx
mov ebp, dword [esp + 0xf0]
test ebp, ebp
jne 0x5d14c4
mov dword [esp + 0x6c], ebx
lea eax, [0x6d9560]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [eax], 1
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], 1
mov dword [esp + 0xf4], 1
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
xor edi, edi
jmp 0x5d1670
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ecx
add esp, 0xc0
ret
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ecx
add esp, 0xc0
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], ecx
add esp, 0xc0
ret
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov eax, dword [0x91eeb8]
mov ecx, dword [0x91eebc]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
lea eax, [0x6f8940]
mov dword [esp], eax
lea eax, [esp + 0xb0]
mov dword [esp + 4], eax
call fcn.00409d70
mov eax, dword [esp + 8]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
lea ecx, [0x78b1d0]
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], eax
add esp, 0xc0
ret
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
lea eax, [esp + 0xc8]
mov dword [esp + 4], eax
call fcn.005cd2d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], edx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], ebp
add esp, 0xc0
ret
inc edi
mov eax, dword [esp + 0xc4]
cmp edi, esi
jge 0x5d16ae
mov eax, dword [ebp + edi*4]
test eax, eax
jne 0x5d1668
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
add esp, 0xc0
ret
lea eax, [0x6d2460]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call fcn.0046c5c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x68]
xor ebx, ebx
mov ebp, edx
jmp 0x5d16f5
mov esi, dword [esp + 0x94]
add esi, 0xc
mov edi, dword [esp + 0x80]
lea edx, [edi - 1]
mov ebx, ecx
mov ecx, esi
test edx, edx
jle 0x5d1818
mov dword [esp + 0x80], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x94], ecx
mov eax, dword [ecx]
mov dword [esp + 0x90], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x70], edx
mov ebx, dword [ecx + 8]
mov dword [esp + 0x74], ebx
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
mov edi, dword [esp + 0xf4]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
call fcn.005d2fb0
movzx eax, byte [esp + 0x18]
test al, al
je 0x5d1804
mov eax, dword [esp + 0x7c]
inc eax
mov ecx, dword [esp + 0x78]
cmp ecx, eax
jb 0x5d178b
mov ecx, eax
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x98]
jmp 0x5d17c0
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x6d2460]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea edx, [ecx + ecx*2]
mov ebx, dword [esp + 0x70]
mov dword [eax + edx*4 - 8], ebx
mov ebx, dword [esp + 0x74]
mov dword [eax + edx*4 - 4], ebx
mov ebx, dword [0x93f150]
test ebx, ebx
jne 0x5d17e6
mov ebx, dword [esp + 0x90]
jmp 0x5d17fb
call fcn.00471840
mov ebx, dword [esp + 0x90]
mov dword [edi], ebx
mov esi, dword [eax + edx*4 - 0xc]
mov dword [edi + 4], esi
mov dword [eax + edx*4 - 0xc], ebx
jmp 0x5d16dd
mov ecx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x98]
jmp 0x5d16dd
test ebx, ebx
jne 0x5d18a8
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 4
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
lea eax, [0x6fd300]
mov dword [esp], eax
lea eax, [esp + 0xa0]
mov dword [esp + 4], eax
call fcn.00409d70
mov eax, dword [esp + 8]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
lea ecx, [0x78b190]
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], eax
add esp, 0xc0
ret
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebp
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
add esp, 0xc0
ret
mov eax, ebx
call fcn.004718b0
call fcn.004718b0
nop
call fcn.00470430
jmp fcn.005d0fd0