Function at 0x41dd00
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 0xc]
jbe 0x41e007
sub esp, 0x44
mov ebx, dword [esp + 0x48]
test byte [ebx], al
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
cmp ebp, esi
jbe 0x41dd32
nop
mov edi, ebp
sub ebp, esi
jmp 0x41dd36
mov edi, ebp
xor ebp, ebp
test ebp, ebp
je 0x41de84
test esi, 0x3fffff
jne 0x41dff0
mov ebp, dword [esp + 0x54]
mov eax, ebp
shr ebp, 0xd
test eax, 0x1fff
je 0x41dd5b
inc ebp
mov eax, esi
mov esi, dword [0x7e828c]
shr esi, 0xd
cmp esi, 1
jae 0x41dd70
mov esi, 1
dec edi
mov dword [esp + 0x28], edi
nop
mov ecx, dword [ebx + 0x28]
mov edx, ebp
mov ebp, dword [ebx + 0x24]
shr edi, 0x16
cmp ecx, edi
jbe 0x41dfe9
lea ecx, [ebp + edi*8]
mov ebp, dword [ecx + 4]
mov ecx, dword [ecx]
test ebp, 0x80000000
je 0x41dda1
mov ecx, 0x40000
jmp 0x41ddaf
shl ebp, 0xe
shr ecx, 0x12
or ecx, ebp
and ecx, 0x3ffff
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], esi
cmp esi, ecx
ja 0x41de4f
mov ecx, dword [ebx + 0x30]
test byte [ecx], al
mov dword [esp + 0x30], edi
shl edi, 7
add ecx, edi
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
and ecx, 0x3fffff
shr ecx, 0xd
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
call fcn.0041e6a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x41de10
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
jmp 0x41de4f
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0041e140
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
shl ecx, 0xd
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x44
ret
nop
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [0x41e020]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
shl edi, 0x16
movzx ecx, byte [esp + 0x58]
jmp 0x41deb5
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
add esp, 0x44
ret
nop
mov edi, dword [esp + 0x2c]
shl edi, 0x16
movzx ecx, byte [esp + 0x58]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
cmp eax, edi
jae 0x41dec0
nop
mov ebp, edi
sub edi, eax
jmp 0x41dec4
mov ebp, edi
xor edi, edi
test edi, edi
je 0x41dfcb
nop
test cl, cl
je 0x41dee9
mov dword [esp + 0x30], ebp
mov eax, dword [ebx + 0x7c]
nop
mov dword [esp], eax
call fcn.004090f0
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea edx, [esp + 0x38]
call ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
movzx ecx, byte [esp + 0xc]
nop
movzx ebx, byte [esp + 0x58]
test bl, bl
je 0x41df33
mov byte [esp + 0x1b], cl
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x7c]
nop
mov dword [esp], ecx
call fcn.00408ef0
mov eax, dword [esp + 0x2c]
movzx ecx, byte [esp + 0x1b]
movzx ebx, byte [esp + 0x58]
test cl, cl
je 0x41dfc5
mov edx, dword [esp + 0x48]
mov ebp, dword [edx + 0x30]
test byte [ebp], al
nop
cmp eax, 0x400
jae 0x41dfdf
shl eax, 7
add eax, ebp
mov dword [esp], eax
mov dword [esp + 4], 0x1ff
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
call fcn.0041e6a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
jbe 0x41de98
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0041e140
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
shl ecx, 0xd
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x4c]
mov ebp, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebp
add esp, 0x44
ret
mov ecx, 0x400
call fcn.0045a040
mov eax, edi
call fcn.0045a040
lea eax, [0x4efeca]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call fcn.00432150
nop
call fcn.004576d0
jmp fcn.0041dd00