Function at 0x40fe90
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, eax
or eax, ecx
mov ebx, dword [esp + 0x60]
or eax, ebx
test eax, 3
jne 0x41027f
movzx eax, byte [0x7e83b4]
test al, al
je 0x40ffdb
nop
mov eax, dword [0x7c8324]
test byte [eax], al
mov ebp, ecx
shr ecx, 0x16
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x40fee8
mov esi, ebp
shr ebp, 0xd
and ebp, 0x1ff
mov eax, dword [eax + ebp*4 + 0x40000]
jmp 0x40feec
mov esi, ebp
xor eax, eax
test eax, eax
jne 0x40ff1c
lea eax, [0x7c21c0]
mov dword [esp], eax
call fcn.00401e50
mov eax, dword [esp + 4]
test eax, eax
je 0x40ff0d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x40ff11
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x58]
xor ebx, ebx
jmp 0x4101d3
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
lea ecx, [eax + 0x3b]
mov dword [esp], ecx
call fcn.00401df0
cmp byte [esp + 4], 1
jne 0x40ffd7
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
cmp dword [edx + 0xc], eax
ja 0x40ffd7
cmp dword [edx + 0x44], eax
jbe 0x40ffd7
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0x54]
test byte [edx], al
mov ebx, dword [0x7c8324]
test byte [ebx], al
mov ebp, dword [esp + 0x34]
mov ebx, dword [ebx + ebp*4]
test ebx, ebx
je 0x40ff98
mov esi, eax
shr eax, 4
and eax, 0x3ffff
add eax, ebx
mov edi, esi
shr esi, 2
and esi, 3
add ebx, 0x3ffff
jmp 0x40ffa2
mov edi, eax
xor ebp, ebp
xor esi, esi
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x50], edx
mov ecx, edx
mov edx, dword [esp + 0x5c]
test edx, edx
jne 0x40ffc7
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
jmp 0x4100fa
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
jmp 0x40fff0
add esp, 0x54
ret
add esp, 0x54
ret
add ebx, 4
mov dword [esp + 0x24], ebx
mov ebx, ebp
mov ebp, esi
mov esi, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x24]
cmp ebp, ebx
jbe 0x4100df
movzx ebp, byte [eax]
mov ecx, esi
shr ebp, cl
test ebp, 1
je 0x41007d
lea ebp, [ebx + edi]
add edx, ebx
mov edi, dword [esp + 0x50]
mov ebx, dword [edi + 0xba0]
mov ebp, dword [ebp]
mov edx, dword [edx]
mov dword [ebx], ebp
mov dword [ebx + 4], edx
mov edx, dword [edi + 0xba0]
add edx, 8
mov dword [edi + 0xba0], edx
cmp dword [edi + 0xba4], edx
jne 0x410071
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], eax
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.0042b6d0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov esi, ecx
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
cmp ecx, 3
jae 0x41008d
lea ebp, [ecx + 1]
mov ecx, ebp
mov ebp, dword [esp + 0x48]
jmp 0x410099
mov ebp, dword [esp + 0x48]
cmp ebp, eax
je 0x4100a2
nop
inc eax
xor ecx, ecx
mov esi, dword [esp + 0x2c]
jmp 0x40ffdf
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
call fcn.0040fcb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov esi, ebp
mov ebp, ebx
mov ebx, dword [esp + 0x24]
jmp 0x40ffdf
add esp, 0x54
ret
add ebp, 4
mov esi, dword [esp + 0x50]
mov dword [esp + 0x28], ebp
mov esi, edx
mov ebp, ecx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x28]
cmp edx, ebp
jbe 0x4100df
movzx edx, byte [eax]
mov ecx, esi
shr edx, cl
test edx, 1
je 0x410180
lea edx, [ebp + edi]
mov edi, dword [esp + 0x50]
mov ebp, dword [edi + 0xba0]
mov edx, dword [edx]
mov dword [ebp], edx
mov dword [ebp + 4], 0
mov edx, dword [edi + 0xba0]
add edx, 8
mov dword [edi + 0xba0], edx
cmp dword [edi + 0xba4], edx
jne 0x410178
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ecx
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.0042b6d0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x48]
mov esi, ecx
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x58]
cmp ecx, 3
jae 0x41018a
lea edx, [ecx + 1]
jmp 0x410192
cmp ebx, eax
je 0x41019b
nop
inc eax
xor edx, edx
mov ecx, dword [esp + 0x2c]
jmp 0x4100e3
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.0040fcb0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
mov ecx, ebp
mov ebp, dword [esp + 0x28]
jmp 0x4100e3
inc ebx
cmp eax, ebx
jle 0x410212
mov ebp, dword [ecx + ebx*4]
mov esi, dword [ebp + 0x68]
cmp edx, esi
jb 0x4101d2
cmp dword [ebp + 0x6c], edx
jbe 0x4101d2
mov eax, dword [ebp + 0xf4]
mov dword [esp], edx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
sub edx, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.00410440
add esp, 0x54
ret
lea eax, [0x7c21c0]
mov dword [esp], eax
call fcn.00401e50
mov eax, dword [esp + 4]
test eax, eax
je 0x41022f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x410233
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x58]
xor ebx, ebx
jmp 0x41023c
inc ebx
cmp eax, ebx
jle 0x41027b
mov ebp, dword [ecx + ebx*4]
mov esi, dword [ebp + 0x70]
cmp edx, esi
jb 0x41023b
cmp dword [ebp + 0x74], edx
jbe 0x41023b
mov eax, dword [ebp + 0xfc]
mov dword [esp], edx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
sub edx, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.00410440
add esp, 0x54
ret
add esp, 0x54
ret
lea eax, [0x4ef2e6]
mov dword [esp], eax
mov dword [esp + 4], 0x28
call fcn.00432150
nop
int3