Function at 0x4cfad0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4cfec6
sub esp, 0x58
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4cfb40
cmp ecx, 1
je 0x4cfb2b
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x4cfb21
lea ebx, [ecx - 1]
mov eax, 0x7fffffff
cmp ebx, 0xffffffff
je 0x4cfb0e
cdq
idiv ebx
jmp 0x4cfb10
neg eax
mov edx, dword [esp + 0x6c]
cmp edx, eax
jge 0x4cfead
imul ebx, edx
jmp 0x4cfb23
xor ebx, ebx
mov eax, dword [esp + 0x5c]
xor ebp, ebp
jmp 0x4cfb57
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
add esp, 0x58
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
add esp, 0x58
ret
inc ebp
add ebx, esi
cmp ecx, ebp
jle 0x4cfb76
lea esi, [eax + ebp*8]
mov esi, dword [esi + 4]
lea edi, [ebx - 0x7fffffff]
xchg edi, ebx
neg ebx
xchg edi, ebx
cmp esi, edi
jle 0x4cfb54
jmp 0x4cfe95
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004ccb10
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
nop
test eax, eax
je 0x4cfbc5
lea ebp, [esp + 0x40]
cmp eax, ebp
je 0x4cfbcd
jmp 0x4cfe7d
lea eax, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
lea esi, [edx + ebp]
mov edi, dword [esp + 0x44]
cmp eax, esi
jae 0x4cfc22
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0x64]
dec ecx
neg ecx
sar ecx, 0x1f
and ecx, 8
mov dword [esp + 0x2c], ecx
add ebp, edi
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004721c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
add eax, ecx
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x60]
dec ecx
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
xor ebp, ebp
jmp 0x4cfceb
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x28], ebx
add ecx, ebp
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004721c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x50]
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
cmp ebp, ecx
jge 0x4cfe23
lea esi, [eax + ebp*8]
mov edi, dword [esp + 0x40]
mov eax, dword [esi + 4]
mov esi, dword [esi]
nop
nop
test edi, edi
je 0x4cfd17
lea ecx, [esp + 0x40]
cmp edi, ecx
jne 0x4cfe65
mov ecx, dword [esp + 0x34]
jmp 0x4cfd1f
lea edi, [esp + 0x40]
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], esi
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
lea ebp, [edx + ecx]
mov esi, dword [esp + 0x44]
cmp edi, ebp
jae 0x4cfd78
mov dword [esp + 0x2c], ecx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], edi
lea eax, [esi + ecx]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004721c0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
nop
test eax, eax
je 0x4cfdc5
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x4cfdcd
jmp 0x4cfe4d
lea eax, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
lea ebx, [edx + ecx]
mov ebp, dword [esp + 0x44]
cmp eax, ebx
jae 0x4cfc8c
mov dword [esp + 0x2c], ecx
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [0x6db200]
mov dword [esp + 0x10], eax
call fcn.0046c670
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
jmp 0x4cfc8c
mov eax, dword [esp + 0x44]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x48]
cmp edx, eax
ja 0x4cfe3f
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
add esp, 0x58
ret
test ecx, ecx
je 0x4cfe48
call fcn.00462020
call fcn.00462060
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e58]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e58]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e58]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789fb8]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789fb8]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.00470430
jmp fcn.004cfad0