Function at 0x41b9e0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41bca6
sub esp, 0x38
mov edx, dword [0x7d8b98]
mov ecx, dword [0x7d8c20]
mov ebx, dword [0x7d8c1c]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jae 0x41bca0
mov ebp, dword [0x7d8bdc]
test byte [ebp], al
mov eax, dword [ebx + eax*4]
cmp eax, 0x400
jae 0x41bc96
mov dword [esp + 0x1c], edx
mov ebx, dword [ebp + eax*4]
mov dword [esp + 0x2c], ebx
test byte [ebx], al
xor eax, eax
jmp 0x41ba4f
mov ebp, dword [esp + 0x28]
lea eax, [ebp + 1]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
cmp eax, 0x40
jge 0x41ba7e
jae 0x41bc8c
mov dword [esp + 0x28], eax
lea ecx, [ebx + eax + 0x21880]
mov dword [esp], ecx
call fcn.00401f80
movzx eax, byte [esp + 4]
test al, al
je 0x41ba40
mov byte [esp + 0x17], al
xor ecx, ecx
jmp 0x41ba83
add esp, 0x38
ret
inc ecx
cmp ecx, 8
jae 0x41ba40
mov edx, 1
shl edx, cl
test al, dl
je 0x41ba82
mov edx, dword [esp + 0x28]
lea ebx, [ecx + edx*8]
cmp ebx, 0x200
jae 0x41bc80
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + ebx*4 + 0x21000]
mov dword [esp + 0x20], ecx
test byte [ecx], al
nop
lea edx, [ecx + 0x3b]
mov dword [esp], edx
call fcn.00401f80
movzx eax, byte [esp + 4]
cmp al, 1
jne 0x41bc29
movzx eax, byte [0x7f8ab2]
test al, al
je 0x41bae6
mov eax, dword [esp + 0x20]
jmp 0x41bb00
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
je 0x41bb00
lea ebx, [edx + 3]
cmp ecx, ebx
jne 0x41bbbd
lea ecx, [eax + 0x48]
mov dword [esp + 0x34], ecx
nop
mov dword [esp], ecx
call fcn.0040a140
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x4c]
jmp 0x41bb36
nop
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0040a340
movzx eax, byte [esp + 0x17]
mov ecx, dword [esp + 0x24]
jmp 0x41ba82
mov ecx, dword [ecx]
test ecx, ecx
je 0x41bb19
cmp byte [ecx + 6], 1
jne 0x41bb34
movzx edx, word [ecx + 4]
mov ebx, dword [eax + 0x40]
mov ebp, dword [eax + 0xc]
test ebx, ebx
je 0x41bbb8
mov dword [esp + 0x18], ecx
mov esi, eax
mov eax, edx
xor edx, edx
div ebx
imul eax, ebx
lea edx, [ebp + eax]
movzx ebx, byte [esi + 0x3a]
test bl, 1
jne 0x41bb7e
mov dword [esp], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0041dea0
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], 4
lea eax, [0x78d2e0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call fcn.0041dd70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
jmp 0x41bb34
call fcn.00435600
mov dword [esp + 0x30], ecx
call fcn.004388b0
lea eax, [0x61b23c]
mov dword [esp], eax
mov dword [esp + 4], 6
call fcn.004391b0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00438e30
call fcn.00438a90
mov dword [esp + 4], 0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00438e30
call fcn.00438ad0
call fcn.00438920
lea eax, [0x61e65e]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00436e90
mov byte [esp + 0x16], al
call fcn.004388b0
lea eax, [0x61c42f]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.004391b0
mov dword [esp + 4], 0
movzx eax, byte [esp + 0x16]
movzx eax, al
mov dword [esp], eax
call fcn.00438e30
call fcn.00438ad0
call fcn.00438920
lea eax, [0x628977]
mov dword [esp], eax
mov dword [esp + 4], 0x2b
call fcn.00436e90
mov eax, ebx
mov ecx, 0x200
call fcn.00464410
mov ecx, 0x40
call fcn.00464400
mov ecx, 0x400
call fcn.00464410
call fcn.00464400
nop
call fcn.00462f70
jmp fcn.0041b9e0