Function at 0x41a590
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41a87d
sub esp, 0x38
mov ecx, dword [0x926efc]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jae 0x41a877
mov edx, dword [0x926ef8]
mov eax, dword [edx + eax*4]
cmp eax, 0x400
jae 0x41a86d
mov ecx, dword [0x926eb4]
test byte [ecx], al
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x2c], eax
test byte [eax], al
mov ecx, dword [0x926e30]
mov dword [esp + 0x1c], ecx
xor edx, edx
jmp 0x41a5fb
mov ebx, dword [esp + 0x28]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp edx, 0x40
jge 0x41a624
mov dword [esp + 0x28], edx
lea ecx, [eax + edx + 0x880]
mov dword [esp], ecx
call fcn.00476200
movzx eax, byte [esp + 4]
test al, al
je 0x41a5ec
mov byte [esp + 0x17], al
xor ecx, ecx
jmp 0x41a629
add esp, 0x38
ret
inc ecx
cmp ecx, 8
jae 0x41a5ec
mov edx, 1
shl edx, cl
test al, dl
je 0x41a628
mov edx, dword [esp + 0x28]
lea ebx, [ecx + edx*8]
cmp ebx, 0x200
jae 0x41a861
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + ebx*4]
mov dword [esp + 0x20], ecx
test byte [ecx], al
lea edx, [ecx + 0x3f]
nop
mov dword [esp], edx
call fcn.00476200
movzx eax, byte [esp + 4]
cmp al, 1
jne 0x41a80a
movzx eax, byte [0x93ed31]
test al, al
je 0x41a688
mov eax, dword [esp + 0x20]
jmp 0x41a6a2
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
je 0x41a6a2
lea ebx, [edx + 3]
cmp ecx, ebx
jne 0x41a79e
lea ecx, [eax + 0x4c]
mov dword [esp + 0x34], ecx
nop
mov dword [esp], ecx
call fcn.0040a2c0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x50]
jmp 0x41a6d8
nop
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0040a4e0
movzx eax, byte [esp + 0x17]
mov ecx, dword [esp + 0x24]
jmp 0x41a628
mov ecx, dword [ecx]
test ecx, ecx
je 0x41a6bb
mov dword [esp + 0x18], ecx
movzx edx, byte [ecx + 6]
cmp dl, 1
je 0x41a725
cmp dl, 2
jne 0x41a6d6
lea eax, [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], 4
lea eax, [0x8ed341]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call fcn.0041c980
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
jmp 0x41a6d6
mov edx, dword [eax + 0x44]
test edx, edx
je 0x41a799
movzx ebx, word [ecx + 4]
mov ebp, eax
mov eax, ebx
mov esi, edx
xor edx, edx
div esi
imul eax, esi
movzx edx, byte [ebp + 0x3e]
mov ebx, dword [ebp + 0xc]
add ebx, eax
test dl, 1
jne 0x41a75f
mov dword [esp], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0041caa0
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], 4
lea eax, [0x8ed341]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call fcn.0041c980
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
jmp 0x41a6d6
call fcn.004351b0
mov dword [esp + 0x30], ecx
call fcn.00437f30
lea eax, [0x71b910]
mov dword [esp], eax
mov dword [esp + 4], 6
call fcn.00438790
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
call fcn.004380f0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
call fcn.00438130
call fcn.00437f90
lea eax, [0x71f066]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0046ad70
mov byte [esp + 0x16], al
call fcn.00437f30
lea eax, [0x71c79e]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00438790
movzx eax, byte [esp + 0x16]
movzx eax, al
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
call fcn.00438130
call fcn.00437f90
lea eax, [0x72cab8]
mov dword [esp], eax
mov dword [esp + 4], 0x2b
call fcn.0046ad70
mov eax, ebx
mov ecx, 0x200
call fcn.004718c0
mov ecx, 0x400
call fcn.004718c0
call fcn.004718b0
nop
call fcn.00470430
jmp fcn.0041a590