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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x6435c8
sub esp, 0x88
mov eax, 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [0x7a4640]
mov dword [esp], eax
call fcn.00409dc0
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x6435b3
mov edx, dword [edx]
lea eax, [0x771de0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], edx
call fcn.00438c00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea eax, [0x64e950]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
call fcn.00640f70
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
xor edx, edx
jmp 0x6434a8
mov ecx, dword [esp + 0x24]
add ecx, 2
mov dword [esp], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
sub ebx, eax
mov edx, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
add eax, ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00642e00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
lea edi, [esp + 0x70]
xor eax, eax
call fcn.0044cd1a
lea eax, [0x771de0]
mov dword [esp], eax
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
lea eax, [0x771de0]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [0x771de0]
mov dword [esp], eax
lea ecx, [esp + 0x40]
mov dword [esp + 4], ecx
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
lea eax, [0x8f8550]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
lea edx, [esp + 0x70]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004bcd20
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
cmp edx, eax
jge 0x64354b
mov dword [esp + 0x2c], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov dword [esp + 0x34], ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov dword [esp], ebx
mov dword [esp + 4], eax
lea ebp, [0x7dc21e]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
call fcn.004db210
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
lea ecx, [0x7dc1f4]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov edx, dword [esp + 0x24]
sub edx, eax
mov dword [esp + 8], edx
call fcn.004da080
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
test edx, edx
jl 0x6435c1
mov ebx, dword [esp + 0x28]
cmp edx, ebx
ja 0x6435c1
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [edx + 1]
cmp eax, ebx
jbe 0x643389
jmp 0x6435c1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x6435a6
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ecx, ebx
ja 0x6435ba
mov dword [esp], 0
sub eax, ecx
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, ecx
add eax, edx
mov dword [esp + 4], eax
sub ebx, ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.0043c0a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x88
ret
mov ecx, 5
lea eax, [0x7dca5e]
jmp 0x643591
xor edx, edx
jmp 0x6432ef
call fcn.00426730
ud2
call fcn.00426730
ud2
call fcn.0044b4c0
jmp fcn.00643290