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

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, ecx
mov edx, dword [esi + 0xe8]
xor ecx, ecx
cmp eax, edx
push edi
mov dword [esp + 0x10], ecx
jne 0x646d97
mov dword [esp + 0x10], 5
jmp 0x646da7
cmp eax, dword [esi + 0xec]
jne 0x646da7
mov dword [esp + 0x10], 4
mov edx, dword [esi + 0xd0]
imul eax, eax, 0x134
add eax, edx
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add eax, 0x94
mov edi, 0x76fc58
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x646f13
mov eax, dword [esi + 0x78]
sub eax, ecx
mov ecx, dword [esp + 0x50]
sar eax, 2
cmp eax, ecx
jbe 0x646f13
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x74]
add eax, ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x646f13
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + edx*4 + 0x20]
mov edx, eax
shr edx, 0x10
movzx edx, dl
mov dword [esp + 0x28], edx
mov edx, eax
shr edx, 8
fild dword [esp + 0x28]
movzx edx, dl
fmul dword [0x7004d4]
mov dword [esp + 0x28], edx
movzx edx, al
fstp dword [esp + 0x3c]
fild dword [esp + 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3c]
shr eax, 0x18
fmul dword [0x7004d4]
fstp dword [esp + 0x40]
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
lea eax, [ecx + 0x38]
mov dword [eax], edx
fmul dword [0x7004d4]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], edx
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
fild dword [esp + 0x28]
mov dword [eax + 8], edx
fmul dword [0x7004d4]
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x50]
add ebx, edx
add ebp, eax
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x38]
add ebx, edx
mov edx, dword [edi]
add ebp, eax
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
call fcn.00614370
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc ebp
add ebx, 0x10
add edx, 4
add edi, 4
cmp edi, 0x76fc7c
mov dword [esp + 0x50], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
jl 0x646de1
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add eax, 9
add edx, 0x24
cmp eax, 0x12
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
jl 0x646dc3
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x646fdc
mov eax, dword [esi + 0x78]
sub eax, ecx
sar eax, 2
test eax, eax
jbe 0x646fdc
mov eax, ecx
mov edi, dword [eax]
test edi, edi
je 0x646fdc
mov ecx, dword [esp + 0x54]
push 0
push ecx
push 0
lea ecx, [edi + 0x4c]
call fcn.0063fa80
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x9c]
mov ebp, dword [eax + 0x94]
mov edx, dword [eax + 0x98]
mov ebx, dword [eax + 0xa0]
add eax, 0x94
cmp dword [esi + 0xdc], 1
mov dword [esp + 0x44], ecx
jne 0x646f9d
add edx, 0xa
jmp 0x646fa0
sub ebx, 0xa
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
add edx, eax
push 0xffffffffffffffff
add ebp, ecx
push 0
mov dword [esp + 0x48], edx
add ebx, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x4c]
push edx
add ebp, ecx
mov ecx, dword [esi + 0x6c]
push edi
add eax, 0x40
push eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebx
call fcn.00614b50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8