Function at 0x404990
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x5c]
cmp ecx, edx
jbe 0x404c47
sub ecx, edx
mov ebx, dword [esp + 0x60]
cmp ebx, ecx
jbe 0x404c40
movzx ebx, byte [eax + 0xf]
test bl, 0x40
je 0x404c21
mov dword [esp + 0x60], ecx
lea eax, [0x1437cf0]
mov dword [esp], eax
call fcn.00402480
mov eax, dword [esp + 4]
test eax, eax
je 0x404c18
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov ebp, dword [esp + 0x58]
xor eax, eax
jmp 0x4049f7
inc eax
mov esi, dword [esp + 0x58]
mov edx, edi
mov ebx, ecx
mov ebp, esi
cmp eax, edx
jge 0x404aa3
mov esi, dword [ebx + eax*4]
mov ecx, ebx
mov ebx, dword [esi + 0x40]
mov edi, edx
mov edx, dword [esi + 0x44]
cmp ebx, ebp
ja 0x404a9c
cmp ebp, edx
setb dl
test dl, dl
jne 0x404a68
mov edx, dword [esi + 0x48]
mov ebx, dword [esi + 0x4c]
cmp edx, ebp
ja 0x404a64
cmp ebp, ebx
setb bl
test bl, bl
je 0x4049ec
mov eax, edx
sub edx, ebp
mov ecx, dword [esi + 0xd4]
mov ebx, dword [esp + 0x58]
add edx, ebx
mov dword [esp], edx
mov dword [esp + 4], ecx
sub ebp, eax
mov eax, dword [esp + 0x5c]
add eax, ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
call fcn.00404c70
add esp, 0x50
ret
xor ebx, ebx
jmp 0x404a2c
mov eax, ebx
sub ebx, ebp
mov ecx, dword [esi + 0xcc]
mov edx, dword [esp + 0x58]
add edx, ebx
mov dword [esp], edx
mov dword [esp + 4], ecx
sub ebp, eax
mov eax, dword [esp + 0x5c]
add eax, ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
call fcn.00404c70
add esp, 0x50
ret
xor edx, edx
jmp 0x404a19
mov edx, dword [0x143f624]
test byte [edx], al
mov ebx, ebp
nop
mov esi, ebp
shr ebp, 0x16
mov edx, dword [edx + ebp*4]
mov eax, esi
shr esi, 0xd
and esi, 0x1ff
mov esi, dword [edx + esi*4 + 0x40000]
test byte [edx], al
cmp byte [esi + 0x3b], 2
je 0x404bd7
nop
mov esi, eax
shr eax, 4
and eax, 0x3ffff
add eax, edx
shr esi, 2
and esi, 3
add edx, 0x3ffff
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
jmp 0x404b1c
add ebp, 4
mov esi, dword [esp + 0x60]
mov dword [esp + 0x20], ebp
mov ebp, ecx
mov esi, ebx
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x24], ebp
lea ebx, [ecx + edi]
mov ebp, dword [esp + 0x20]
cmp ebp, ebx
jae 0x404bd3
movzx ebx, byte [eax]
mov ecx, esi
shr ebx, cl
cmp ebp, edi
jb 0x404b42
test ebx, 1
jne 0x404b8f
cmp ecx, 3
jae 0x404b50
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x24]
jmp 0x404b05
cmp eax, edx
je 0x404b5a
nop
inc eax
xor ebx, ebx
jmp 0x404b4a
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00412db0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x5c]
jmp 0x404b05
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x58]
mov ecx, dword [ebp + eax]
mov dword [esp], ecx
call fcn.004046a0
movzx eax, byte [esp + 4]
test al, al
jne 0x404c4b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
mov esi, ecx
mov edi, dword [esp + 0x5c]
jmp 0x404b42
add esp, 0x50
ret
lea edi, [esp + 0x3c]
xor eax, eax
call fcn.0045832b
lea ecx, [0x453270]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x3c]
mov dword [esp], ecx
call fcn.004566d0
add esp, 0x50
ret
xor edx, edx
xor ebx, ebx
jmp 0x4049e4
mov eax, dword [eax + 0x14]
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00404c70
add esp, 0x50
ret
mov ecx, ebx
jmp 0x4049b4
add esp, 0x50
ret
lea eax, [0xd62e3f]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.0042e730
nop
int3