Function at 0x457840
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x457c82
sub esp, 0x7c
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x457c69
movzx ebx, byte [ecx + 0xf]
and ebx, 0x1f
cmp bl, 0x13
jne 0x457c69
lea edi, [esp + 0x34]
xor eax, eax
call fcn.0045a178
mov ecx, dword [esp + 0x80]
movzx ebx, byte [ecx + 0xc]
test bl, 1
je 0x45789a
mov edx, 0x34
jmp 0x45789f
mov edx, 0x24
movzx ebx, word [ecx + 0x20]
lea ebp, [edx + ecx]
cmp ebx, 0x100000
ja 0x457c5d
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
xor edx, edx
jmp 0x4578ee
mov dword [esp + 0x20], edx
mov eax, dword [ebp + edx*4]
lea ecx, [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044a320
mov eax, dword [esp + 0x20]
lea edx, [eax + 1]
xor eax, eax
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
cmp edx, ebx
jl 0x4578be
mov ebx, dword [esp + 0x44]
add ebx, 3
and ebx, 0xfffffffc
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
movzx ebp, byte [ecx + 0xc]
movzx esi, word [ecx + 0x22]
and esi, 0x7fff
movzx edi, word [ecx + 0x20]
add esi, edi
movzx esi, si
cmp esi, 0x100000
ja 0x457c51
movzx edx, di
cmp edx, esi
ja 0x457c48
mov dword [esp + 0x24], edx
lea edi, [edx - 0x100000]
xchg edi, ebx
neg ebx
xchg edi, ebx
xchg edi, ebx
neg ebx
xchg edi, ebx
shl edx, 2
sar edi, 0x1f
and edi, edx
mov edx, dword [esp + 0x24]
sub esi, edx
cmp esi, 1
jne 0x457c30
xchg ebp, eax
test al, 1
xchg ebp, eax
je 0x45796d
mov edx, 0x34
jmp 0x457972
mov edx, 0x24
add edx, ecx
mov edx, dword [edx + edi]
nop
cmp dword [edx], 4
jne 0x457c18
xchg ebp, eax
test al, 1
xchg ebp, eax
je 0x45798f
mov edx, 0x34
jmp 0x457994
mov edx, 0x24
add ecx, edx
mov ecx, dword [ecx + edi]
movzx ecx, byte [ecx + 0xf]
and ecx, 0x1f
nop
cmp cl, 0xd
je 0x457c00
cmp cl, 0xe
je 0x457c00
mov ecx, dword [0x7e8248]
test ecx, ecx
jne 0x4579c4
lea ecx, [ebx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x44]
add ecx, 3
and ecx, 0xfffffffc
add ecx, dword [esp + 0x48]
cmp ecx, 0x100
ja 0x457be8
movzx ecx, byte [esp + 0x88]
test cl, cl
je 0x4579f0
mov edx, dword [esp + 0x40]
jmp 0x4579f2
xor edx, edx
mov dword [esp + 0x14], edx
nop
nop
lea eax, [0x7d4900]
mov dword [esp], eax
call fcn.00408ef0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
movzx ecx, byte [esp + 0x88]
mov byte [esp + 0x30], cl
mov edx, dword [0x7e8184]
lea ebx, [0x4d7700]
mov dword [esp], ebx
mov dword [esp + 4], edx
lea edx, [esp + 0x2c]
mov dword [esp + 8], edx
call fcn.0040bfe0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
movzx ecx, byte [esp + 0x10]
test cl, cl
jne 0x457b84
mov ecx, dword [0x7e8184]
test ecx, ecx
jne 0x457a81
call fcn.0040ba40
mov eax, dword [0x7e83b0]
mov ecx, dword [esp]
test eax, eax
jne 0x457a74
mov dword [0x7e8184], ecx
jmp 0x457a81
lea edi, [0x7e8184]
mov eax, ecx
call fcn.00459fb0
mov ecx, dword [0x7e8188]
cmp ecx, 0x7d0
jge 0x457bc2
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x54]
xor eax, eax
call fcn.0045a176
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], edx
lea edi, [esp + 0x5c]
lea esi, [esp + 0x34]
call fcn.0045a640
mov eax, dword [esp + 0x1c]
cmp eax, 0x7d0
jae 0x457bb8
lea ecx, [eax + eax*4]
mov dword [esp + 0x24], ecx
lea edx, [0x7d4904]
lea edi, [edx + ecx*8]
mov edx, dword [0x7e83b0]
test edx, edx
jne 0x457af6
lea esi, [esp + 0x54]
call fcn.0045a62c
jmp 0x457b10
lea eax, [0x4ddc40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
call fcn.0040f480
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
movzx eax, byte [esp + 0x88]
mov byte [esp + 0x30], al
mov eax, dword [0x7e8184]
lea ecx, [0x4d7700]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0040c360
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
inc dword [0x7e8188]
nop
nop
lea eax, [0x7d4900]
mov dword [esp], eax
call fcn.004090f0
lea eax, [0x4f1e7c]
test byte [eax], al
mov eax, dword [esp + 0x24]
add eax, dword [0x4f1e7c]
mov dword [esp + 0x8c], eax
add esp, 0x7c
ret
mov dword [esp + 0x18], eax
nop
nop
lea eax, [0x7d4900]
mov dword [esp], eax
call fcn.004090f0
lea eax, [0x4f1e7c]
test byte [eax], al
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4]
add eax, dword [0x4f1e7c]
mov dword [esp + 0x8c], eax
add esp, 0x7c
ret
mov ecx, 0x7d0
call fcn.0045a030
nop
nop
lea eax, [0x7d4900]
mov dword [esp], eax
call fcn.004090f0
lea eax, [0x4ec448]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.00432150
lea eax, [0x4d7140]
mov dword [esp], eax
lea eax, [0x50ef40]
mov dword [esp + 4], eax
call fcn.004319f0
lea eax, [0x4d7140]
mov dword [esp], eax
lea eax, [0x50ef38]
mov dword [esp + 4], eax
call fcn.004319f0
lea eax, [0x4d7140]
mov dword [esp], eax
lea eax, [0x50ef30]
mov dword [esp + 4], eax
call fcn.004319f0
lea eax, [0x4d7140]
mov dword [esp], eax
lea eax, [0x50ef30]
mov dword [esp + 4], eax
call fcn.004319f0
mov eax, edx
mov ecx, esi
call fcn.0045a090
mov ecx, esi
mov edx, 0x100000
call fcn.0045a050
mov ecx, ebx
mov edx, 0x100000
call fcn.0045a050
lea eax, [0x4d7140]
mov dword [esp], eax
lea eax, [0x50ef30]
mov dword [esp + 4], eax
call fcn.004319f0
nop
call fcn.00458b70
jmp fcn.00457840