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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
cmp dword [esi + 0x484], 0
push edi
mov edi, dword [eax]
mov dword [esp + 0x40], edi
mov dword [esp + 0x58], 0
jle 0x641050
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
add esi, 0x888
sub ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x78], ecx
mov edx, dword [esi - 0x400]
mov ecx, dword [ebp + 0x28]
cmp dword [ecx + edx*4], 0
lea eax, [ecx + edx*4]
mov dword [esp + 0x54], eax
jne 0x640d19
mov eax, dword [esi]
cmp dword [ecx + eax*4], 0
je 0x64102a
mov ecx, dword [esi]
mov eax, edx
mov edx, dword [ebp + 0x18]
add eax, eax
add eax, eax
mov ebx, dword [eax + edx]
add ecx, ecx
add ecx, ecx
mov esi, dword [ecx + edx]
mov edx, dword [esp + 0x40]
lea edx, [ebx + edx*4]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x40]
lea edx, [esi + edx*4]
mov dword [esp + 0x68], edx
mov edx, dword [ebp + 0x24]
mov eax, dword [eax + edx]
mov ecx, dword [ecx + edx]
mov edx, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4 + 0xfc]
fld qword [eax*8 + 0x8064e8]
mov eax, dword [ecx + edx*4 + 0x138]
fstp dword [esp + 0x70]
mov dword [esp + 0x64], ebx
fld qword [eax*8 + 0x8064e8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
fstp dword [esp + 0x6c]
cmp dword [eax + 0x1f8], 0
mov dword [esp + 0x44], esi
je 0x640da2
mov ebx, dword [eax + 0x200]
mov dword [esp + 0x18], ebx
jmp 0x640da8
mov dword [esp + 0x18], edi
mov ebx, edi
mov eax, dword [eax]
mov edi, eax
shl edi, 4
sub edi, eax
mov eax, dword [esp + 0x20]
add edi, edx
mov ecx, dword [ecx + edi*4 + 0x84]
mov edx, dword [esp + 0x54]
mov dword [edx], 1
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [edx + ecx*4], 1
mov edi, dword [eax]
xor edx, edx
test edi, edi
mov dword [esp + 0x54], edx
jle 0x641026
xor ecx, ecx
mov dword [esp + 0x3c], ecx
test ebx, ebx
fldz
fstp dword [esp + 0x1c]
jle 0x640f44
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
lea ebx, [ecx + esi]
mov ecx, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x7c], eax
mov eax, ecx
mov ecx, dword [esp + 0x68]
sub eax, esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x64]
sub eax, esi
sub edi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
sub ecx, esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], eax
cmp edx, dword [ebp + 0x2c]
jge 0x641082
cmp edx, dword [esp + 0x50]
jl 0x640e7e
mov edx, dword [esp + 0x28]
fld dword [edx + ebx]
fabs
fld dword [esp + 0x6c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x640e7c
fld dword [ebx]
fabs
fcompp
fnstsw ax
test ah, 5
jnp 0x640eab
jmp 0x640e7e
fstp st(0)
mov eax, dword [esp + 0x28]
fld dword [eax + ebx]
fabs
fld dword [esp + 0x70]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x641057
fld dword [ebx]
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x641059
mov edx, dword [esp + 0x74]
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [edx + ebx]
mov edx, dword [esp + 0x7c]
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x38]
fld dword [ecx + edx]
add edi, ebx
push edi
mov edi, dword [eax]
push ecx
mov ecx, dword [esp + 0x88]
fstp dword [esp]
mov esi, dword [eax + ecx]
call fcn.006403d0
mov edx, dword [esp + 0x38]
fld dword [edx + ebx]
lea esi, [edx + ebx]
fadd qword [0x65dc28]
add esp, 4
fstp qword [esp]
call fcn.005b0720
fcomp qword [0x662600]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x640f1e
fld dword [esi]
fmul st(0), st(0)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add dword [esp + 0x34], 4
add edx, 1
add ebx, 4
sub dword [esp + 0x4c], 1
mov dword [esp + 0x48], edx
jne 0x640e46
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
cmp dword [edx + 0x1f8], 0
je 0x640ffe
test ebx, ebx
mov dword [esp + 0x4c], 0
jle 0x640ffe
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x10]
fld dword [esp + 0x1c]
mov ecx, dword [eax + 4]
fcomp qword [ecx + 0x208]
fnstsw ax
test ah, 1
jne 0x640ffa
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov edi, dword [ebx + eax]
cmp edi, dword [ebp + 0x2c]
jge 0x640fe2
cmp edi, dword [esp + 0x50]
jl 0x640fe2
mov ecx, dword [esp + 0x38]
fld dword [ecx + edi*4]
sub esp, 8
fadd qword [0x65dc28]
fstp qword [esp]
call fcn.005b0720
fcomp qword [0x662600]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x640fe2
push ecx
mov ecx, dword [esp + 0x3c]
fld dword [ecx + edi*4]
fstp dword [esp]
call fcn.0063d520
fstp dword [ecx + edi*4]
add esp, 4
fld dword [esp + 0x1c]
fsub qword [0x662638]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
add eax, 1
add ebx, 4
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
jl 0x640f6b
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
lea eax, [ebx*4]
add ecx, eax
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
add edx, ebx
cmp edx, edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], ecx
jl 0x640df1
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
mov ecx, dword [ebp + 0x14]
add dword [esp + 0x24], 4
add eax, 1
add esi, 4
cmp eax, dword [ecx + 0x484]
mov dword [esp + 0x58], eax
mov dword [esp + 0x20], esi
jl 0x640cf7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fld dword [ebx]
mov eax, dword [esp + 0x28]
sub esp, 8
fstp dword [esp + 4]
add ecx, ebx
fld dword [eax + ebx]
lea edx, [edi + ebx]
fstp dword [esp]
call fcn.00640310
mov ecx, dword [esp + 0x38]
add esp, 8
jmp 0x640f22
fldz
fst dword [edi + ebx]
fstp dword [ecx + ebx]
jmp 0x640f22