Function at 0x662a00
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 0x662e61
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.00495170
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 0x662e1e
mov ecx, dword [esp + 0xf0]
test ecx, ecx
jne 0x662aaf
xor eax, eax
jmp 0x662bb4
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 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 0x662b7a
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.006638e0
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.00663990
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x662de7
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x662e70]
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 0x662be5
lea eax, [0x7cb3a8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
nop
mov eax, dword [0x8db160]
lea ecx, [0x7cb888]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edi, [esp + 8]
lea esi, [esp + 0xdc]
call fcn.0045723e
call fcn.004b9200
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x54], 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.004dacf0
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 + 0x54]
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.004c30d0
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 0x662cae
xor ebp, ebp
jmp 0x662d0f
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [0x706fdc]
mov edx, dword [esp + 8]
cmp dword [0x706fd8], eax
je 0x662ce8
xor eax, eax
jmp 0x662cfd
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 + 0x50]
mov ebx, dword [esp + 0x4c]
mov ebp, eax
mov eax, dword [esp + 0x58]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x662d88
mov eax, dword [0x706ea8]
mov ecx, dword [0x706eac]
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 0x662d6a
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 0x662d81
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 0x662dc9
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 0x662de0
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 [0x706eac]
mov ecx, dword [0x706ea8]
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 [0x706eac]
mov ecx, dword [0x706ea8]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], eax
add esp, 0xc8
ret
call fcn.00455690
jmp fcn.00662a00