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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x647430
sub esp, 0x74
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0064b490
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x7c]
cmp ebx, edx
jge 0x647419
jae 0x647412
lea edx, [ebx + ebx*2]
mov ebp, dword [ecx + edx*4]
mov esi, dword [ecx + edx*4 + 4]
mov ecx, dword [ecx + edx*4 + 8]
mov edx, dword [esp + 0x78]
mov edi, dword [edx + 0x3c]
mov dword [esp + 0x18], edi
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x30], ecx
test ebx, ebx
sete cl
mov byte [esp + 0x34], cl
call fcn.0064c9b0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
test ecx, ecx
je 0x6473f7
movzx ebx, byte [esp + 0x98]
test bl, bl
jne 0x6473ec
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jle 0x6473e1
mov ebp, dword [esp + 0x5c]
mov esi, dword [ebp]
mov esi, dword [esi + 0x38]
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.00645090
mov eax, dword [esp + 8]
mov ecx, eax
sar eax, 0x1f
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x48]
mov ebp, edx
xor esi, esi
xor edi, edi
xor edx, edx
mov dword [esp + 0x44], edx
mov edx, ebp
mov dword [esp + 0x50], esi
cmp esi, ebx
jge 0x6472d1
mov ebp, dword [edx]
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0x44]
add ebx, esi
mov ebp, dword [ebp + 0x14]
adc ebp, edi
cmp ebp, eax
xchg esi, ebx
sete bl
xchg esi, ebx
cmp ebx, ecx
xchg edi, ebx
setae bl
xchg edi, ebx
and esi, edi
cmp ebp, eax
xchg edi, ebx
setg bl
xchg edi, ebx
or esi, edi
xchg esi, eax
test al, al
xchg esi, eax
jne 0x647312
add edx, 4
mov esi, dword [esp + 0x50]
inc esi
mov edi, dword [esp + 0x48]
mov edi, ebp
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x50], esi
cmp esi, ebx
jl 0x64727a
mov ecx, dword [esp + 0x4c]
mov eax, ebx
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.00647440
mov eax, dword [esp + 0x18]
mov dword [esp + 0x9c], eax
add esp, 0x74
ret
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea ecx, [0x6b4260]
mov dword [esp], ecx
lea edx, [esp + 0x58]
mov dword [esp + 4], edx
call fcn.0040a880
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
lea eax, [0x6b4260]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.0040a880
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
lea ecx, [0x71304c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x28
lea ecx, [esp + 0x64]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.0064b2a0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
ja 0x6473da
jmp 0x6472d7
call fcn.004246e0
ud2
mov ecx, edx
mov eax, dword [esp + 0x48]
jmp 0x6472d7
mov ecx, edx
mov eax, dword [esp + 0x48]
jmp 0x6472d7
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.0064ef80
mov dword [esp + 0x9c], 0
add esp, 0x74
ret
call fcn.00424680
ud2
mov dword [esp], eax
call fcn.0064ef80
mov dword [esp + 0x9c], 0
add esp, 0x74
ret
call fcn.004486b0
jmp fcn.00647130