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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x663549
sub esp, 0x70
mov eax, 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x663447
mov ecx, dword [0xbb52c0]
mov edx, dword [esp + 0x84]
cmp edx, ecx
je 0x6632e9
test edx, edx
jne 0x662eff
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x70
ret
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0047c110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 0xc]
test al, al
je 0x662f4f
mov eax, dword [esp + 0x80]
jmp 0x662ede
mov eax, dword [esp + 0x80]
mov ecx, eax
and eax, 0x1f
cmp eax, 0x14
jne 0x6632da
add eax, 0xffffffee
cmp eax, 1
ja 0x6632ca
test ecx, 0x200
je 0x663295
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00478cd0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x34], edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0047c110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 0xc]
test al, al
jne 0x663270
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov ebx, eax
and eax, 0x1f
cmp eax, 0x16
je 0x663160
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0047c110
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00472d30
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 0xc]
test al, al
je 0x663157
mov eax, dword [esp + 0x18]
test eax, 0x100
jne 0x66312e
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0047c110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x84]
test edx, edx
je 0x6630a9
mov edx, dword [edx + 4]
test eax, eax
je 0x6630b0
mov eax, dword [eax + 4]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x74]
mov dword [esp], eax
lea eax, [0x7edccf]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x29
lea eax, [esp + 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.0065d9a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
jmp 0x662ee6
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00476d50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
jmp 0x662ee6
mov eax, dword [esp + 0x18]
jmp 0x66307b
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0047c110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 0xc]
test al, al
jne 0x6631c0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
jmp 0x663015
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 8], eax
call fcn.00478cd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x662ee6
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x84]
test ebx, ebx
je 0x66320a
mov ebx, dword [ebx + 4]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
lea eax, [0x7ebd25]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x25
lea eax, [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.0065d9a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x662ee6
mov eax, dword [esp + 0x34]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x94], eax
add esp, 0x70
ret
test ecx, 0x80
je 0x6632c2
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
test edx, edx
setne dl
xor edx, 1
test dl, dl
je 0x662f7c
mov eax, ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
jmp 0x662ffb
mov eax, dword [esp + 0x7c]
mov edx, eax
jmp 0x6632a3
mov eax, dword [esp + 0x7c]
mov ebx, dword [eax]
test ebx, ebx
setne dl
xor edx, 1
jmp 0x6632ab
mov eax, ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
jmp 0x662ffb
mov dword [esp], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
mov ecx, dword [0xbb52c4]
mov dword [esp + 8], ecx
call fcn.00402e90
movzx eax, byte [esp + 0xc]
test al, al
jne 0x663322
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
jmp 0x662eda
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 8], edx
call fcn.0047c110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x84]
cmp eax, edx
je 0x663410
mov eax, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x5c], eax
lea eax, [0x7da620]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00407470
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x663408
movzx edx, byte [0xbb55c0]
test dl, dl
je 0x6633b6
mov dword [0xbb55c4], ecx
mov edx, dword [0xbc7270]
test edx, edx
jne 0x6633fb
mov dword [0xbb55c8], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x6633f3
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x6633da
or edx, 0x80
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
add esp, 0x70
ret
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x6633da
lea edi, [0xbb55c8]
call fcn.0044cc20
jmp 0x6633b6
xor ecx, ecx
xor edx, edx
xor eax, eax
jmp 0x6633da
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.00402e90
movzx eax, byte [esp + 0xc]
test al, al
je 0x663358
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
jmp 0x662eda
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x663524
mov dword [esp], ecx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call fcn.00662e00
movzx eax, byte [esp + 8]
test al, al
jne 0x6634e5
mov eax, dword [esp + 0x84]
test eax, eax
je 0x6634e1
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
lea edx, [0x7e5f29]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1a
lea edx, [esp + 0x4c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.0065d9a0
mov eax, dword [esp + 0x80]
jmp 0x662ec5
mov ecx, eax
jmp 0x663480
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call fcn.0047ccd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x70
ret
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x70
ret
call fcn.0044b4c0
jmp fcn.00662e90