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

Disassembly:
mov ecx, dword [0x9aee30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x642f6a
sub esp, 0x60
mov eax, 0
mov dword [esp + 0x5c], eax
mov byte [esp + 0x1b], 0
mov eax, dword [esp + 0x64]
test byte [eax], al
lea ecx, [eax + 0x30]
mov dword [esp + 0x24], ecx
mov dword [esp], ecx
call fcn.00489310
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x642cb9
mov edx, dword [ecx]
jmp 0x642cbb
xor edx, edx
mov dword [esp + 0x1c], edx
lea eax, [0x694f80]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
call fcn.00410460
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x642ce8
mov ecx, dword [ecx]
jmp 0x642cea
xor ecx, ecx
mov edx, dword [esp + 0x1c]
dec edx
cmp ecx, edx
jne 0x642f48
call fcn.004b2490
lea edi, [esp + 0x48]
lea esi, [esp]
call fcn.0046d00e
mov eax, dword [0x9aef70]
mov ecx, dword [esp + 0x64]
lea edi, [ecx + 0x78]
test eax, eax
je 0x642d3f
mov dword [esp + 0x20], edi
lea eax, [0x6cce60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea ecx, [esp + 0x48]
mov dword [esp + 8], ecx
call fcn.00412800
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x48]
call fcn.0046d00e
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x642d57
mov ecx, dword [ecx]
jmp 0x642d59
xor ecx, ecx
test ecx, ecx
jne 0x642dd2
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x642dd2
mov edx, dword [eax + 0x28]
mov ebx, dword [eax + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004b0370
call fcn.004b2490
lea edi, [esp + 0x48]
lea esi, [esp]
call fcn.0046d00e
mov eax, dword [0x9aef70]
mov ecx, dword [esp + 0x64]
lea edi, [ecx + 0x8c]
test eax, eax
je 0x642dc5
mov dword [esp + 0x20], edi
lea eax, [0x6cce60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
call fcn.00412800
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x48]
call fcn.0046d00e
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x38]
mov dword [esp], ecx
call fcn.00488070
mov eax, dword [esp + 0x64]
movzx ecx, byte [eax + 0x14]
test cl, cl
jne 0x642e0d
movzx ecx, byte [eax + 0x4c]
test cl, cl
jne 0x642e0d
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x642e02
movzx ecx, byte [ecx + 0x6c]
test cl, cl
jne 0x642e0d
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x642f19
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x642f15
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x642e23
mov ecx, dword [ecx]
jmp 0x642e25
xor ecx, ecx
test ecx, ecx
jne 0x642f11
movzx ecx, byte [0x9aece5]
test cl, cl
je 0x642edb
lea edi, [esp + 0x30]
xor eax, eax
call fcn.0046cb2a
lea ecx, [0x6ca840]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x34], ecx
movzx edx, byte [ecx + 0x14]
lea ebx, [0x692dc0]
mov dword [esp + 0x38], ebx
lea ebx, [0x945600]
lea edx, [ebx + edx*8]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 0x68]
add edx, 0xfffffffe
mov dword [esp], edx
call fcn.0040aa30
mov ecx, dword [esp + 4]
lea edx, [0x692b40]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
movzx ecx, byte [0x9aece5]
test cl, cl
je 0x642ed7
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov dword [esp], ecx
lea ecx, [0x6e5ed2]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x45
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 3
call fcn.00647d20
mov eax, dword [esp + 0x64]
mov byte [eax + 0x4e], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea ecx, [0x642f80]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x1b], 1
mov eax, 1
jmp 0x642f1b
xor eax, eax
jmp 0x642f1b
xor eax, eax
jmp 0x642f1b
xor eax, eax
mov byte [esp + 0x1a], al
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
call fcn.00489690
movzx eax, byte [esp + 0x1a]
test al, 1
je 0x642f44
and eax, 0xfffffffe
mov byte [esp + 0x1b], al
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
call eax
add esp, 0x60
ret
lea eax, [0x6929c0]
mov dword [esp], eax
lea eax, [0x748708]
mov dword [esp + 4], eax
call fcn.00439660
nop
call fcn.00439380
add esp, 0x60
ret
call fcn.0046b490
jmp fcn.00642c70