Function at 0x662a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x48]
cmp eax, dword [ecx + 8]
jbe 0x662e81
sub esp, 0xc8
mov eax, 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov byte [esp + 0x2f], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
lea edi, [esp]
lea esi, [esp + 0xdc]
call fcn.0045723e
call fcn.00495190
mov eax, dword [esp + 0x14]
test eax, eax
setbe cl
mov edx, dword [esp + 0x18]
test edx, edx
sete dl
setl bl
mov ebp, dword [esp + 0x18]
and edx, ecx
or ebx, edx
test bl, bl
jne 0x662e3e
mov ecx, dword [esp + 0xf0]
test ecx, ecx
jne 0x662acf
xor eax, eax
jmp 0x662bd4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebp
mov dword [esp], ecx
lea eax, [esp + 0x2e]
mov dword [esp + 4], eax
call fcn.00406800
movzx eax, byte [esp + 8]
test al, al
jne 0x662b9a
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00663900
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [eax]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x68], edx
lea ebx, [esp + 0x2e]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x68]
mov dword [esp], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
mov byte [esp + 0x14], 1
call fcn.0043f990
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
call fcn.006639b0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x662e07
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x662e90]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xf0]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0xc4], ecx
mov byte [esp + 0x2f], 1
mov eax, 1
mov byte [esp + 0x2e], al
lea edi, [esp + 0x78]
xor eax, eax
call fcn.00456d4e
mov ecx, dword [esp + 0xcc]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x662c05
lea eax, [0x7cb05c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
nop
mov eax, dword [0x8da1b0]
lea ecx, [0x7cb620]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edi, [esp + 8]
lea esi, [esp + 0xdc]
call fcn.0045723e
call fcn.004b9220
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x50], ebx
mov dword [esp + 0xc0], edx
movzx edx, byte [esp + 0x2e]
or edx, 2
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], dl
mov ebp, dword [esp + 0xd8]
mov dword [esp], ebp
call fcn.004dad30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x78]
mov dword [esp], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.004c30f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
test ebp, ebp
jne 0x662cce
xor ebp, ebp
jmp 0x662d2f
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [0x707094]
mov edx, dword [esp + 8]
cmp dword [0x707090], eax
je 0x662d08
xor eax, eax
jmp 0x662d1d
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00404110
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
mov ebp, eax
mov eax, dword [esp + 0x58]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x662da8
mov eax, dword [0x706df8]
mov ecx, dword [0x706dfc]
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ecx
movzx eax, byte [esp + 0x2e]
test al, 2
je 0x662d8a
and eax, 0xfffffffd
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0xc0]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x2e]
test al, 1
je 0x662da1
and eax, 0xfffffffe
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0xc4]
mov eax, dword [edx]
call eax
add esp, 0xc8
ret
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ebx
movzx eax, byte [esp + 0x2e]
test al, 2
je 0x662de9
and eax, 0xfffffffd
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0xc0]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x2e]
test al, 1
je 0x662e00
and eax, 0xfffffffe
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0xc4]
mov eax, dword [edx]
call eax
add esp, 0xc8
ret
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov eax, dword [0x706dfc]
mov ecx, dword [0x706df8]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], eax
add esp, 0xc8
ret
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov eax, dword [0x706dfc]
mov ecx, dword [0x706df8]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], eax
add esp, 0xc8
ret
call fcn.00455690
jmp fcn.00662a20