Function at 0x470f20
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecda5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
movss dword [ebp - 0x2c], xmm3
lea ecx, [ebp - 0x30]
movss dword [ebp - 0x28], xmm2
push dword [ebx]
mov dword [ebp - 0x1c], edi
call dword [sym.imp.mfc140.dll_Ordinal_310]
mov dword [ebp - 4], 0
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4712c3
push esi
push 0xa
push 0x80020004
lea ecx, [ebp - 0x60]
call dword [sym.imp.mfc140.dll_Ordinal_884]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
push 0x508ebc
push dword [ebx]
xorps xmm0, xmm0
push eax
movss dword [ebp - 0x14], xmm0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 0x24]
add esp, 0xc
test eax, eax
je 0x4710a4
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call edi
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [ebp - 0x24]
mov esi, eax
call edi
add esp, 0x1c
cmp esi, 0x18
jl 0x4710a1
push dword [ebp - 0x24]
lea eax, [ebp - 0x78]
push 0x18
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
cmp byte [ebp - 0x78], 0x89
jne 0x4710a1
cmp byte [ebp - 0x77], 0x50
jne 0x4710a1
cmp byte [ebp - 0x76], 0x4e
jne 0x4710a1
cmp byte [ebp - 0x75], 0x47
jne 0x4710a1
cmp byte [ebp - 0x74], 0xd
jne 0x4710a1
cmp byte [ebp - 0x73], 0xa
jne 0x4710a1
cmp byte [ebp - 0x72], 0x1a
jne 0x4710a1
cmp byte [ebp - 0x71], 0xa
jne 0x4710a1
cmp byte [ebp - 0x6c], 0x49
jne 0x4710a1
cmp byte [ebp - 0x6b], 0x48
jne 0x4710a1
cmp byte [ebp - 0x6a], 0x44
jne 0x4710a1
cmp byte [ebp - 0x69], 0x52
mov edi, dword [ebp - 0x1c]
jne 0x4710a4
movzx ecx, byte [ebp - 0x68]
movzx eax, byte [ebp - 0x67]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0x66]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0x65]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0x63]
movd xmm1, ecx
movzx ecx, byte [ebp - 0x64]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0x62]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0x61]
shl ecx, 8
add ecx, eax
cvtdq2ps xmm1, xmm1
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
jmp 0x4710ac
mov edi, dword [ebp - 0x1c]
movss xmm1, dword [ebp - 0x14]
movaps xmm2, xmm1
movss xmm5, dword [ebp + 0xc]
xorps xmm3, xmm3
comiss xmm5, xmm3
mov al, byte [ebp + 0x24]
movss xmm4, dword [ebp + 0x10]
jbe 0x4710dc
ucomiss xmm4, xmm3
lahf
test ah, 0x44
jp 0x4710d9
test al, al
jne 0x4710d9
movaps xmm0, xmm5
divss xmm0, xmm2
mulss xmm1, xmm0
movaps xmm2, xmm5
comiss xmm4, xmm3
jbe 0x4710fc
ucomiss xmm5, xmm3
lahf
test ah, 0x44
jp 0x4710f9
test al, al
jne 0x4710f9
movaps xmm0, xmm4
divss xmm0, xmm1
mulss xmm2, xmm0
movaps xmm1, xmm4
movss xmm4, dword [ebp + 0x34]
movss xmm5, dword [ebp + 0x30]
comiss xmm5, xmm3
jbe 0x471110
comiss xmm2, xmm5
ja 0x47111a
comiss xmm4, xmm3
jbe 0x47114c
comiss xmm1, xmm4
jbe 0x47114c
comiss xmm5, xmm3
jbe 0x471132
comiss xmm2, xmm5
jbe 0x471132
movaps xmm0, xmm5
divss xmm0, xmm2
movaps xmm2, xmm5
mulss xmm1, xmm0
comiss xmm4, xmm3
jbe 0x471106
comiss xmm1, xmm4
jbe 0x471106
movaps xmm0, xmm4
divss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm2, xmm0
jmp 0x471106
movss xmm4, dword [ebp + 0x14]
comiss xmm4, xmm3
movss dword [ebp - 0x10], xmm2
movss dword [ebp - 0x14], xmm1
jbe 0x471169
subss xmm4, xmm2
movss dword [ebp - 0x28], xmm4
movss xmm0, dword [ebp + 0x18]
comiss xmm0, xmm3
jbe 0x47117c
subss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
movss xmm4, dword [ebp + 0x20]
comiss xmm4, xmm3
movss xmm5, dword [0x514458]
jbe 0x4711a1
movaps xmm0, xmm2
movaps xmm2, xmm4
mulss xmm0, xmm5
subss xmm2, xmm0
movss dword [ebp - 0x28], xmm2
movss xmm2, dword [ebp + 0x1c]
comiss xmm2, xmm3
jbe 0x4711be
movaps xmm0, xmm1
movaps xmm1, xmm2
mulss xmm0, xmm5
subss xmm1, xmm0
movss dword [ebp - 0x2c], xmm1
mov esi, dword [sym.imp.mfc140.dll_Ordinal_846]
lea ecx, [ebp - 0x50]
call esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call esi
push 0
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 5
push eax
push 9
push 2
lea eax, [edi + 0x14]
push 0x561
push eax
call dword [sym.imp.mfc140.dll_Ordinal_8087]
mov edi, dword [sym.imp.mfc140.dll_Ordinal_845]
lea ecx, [ebp - 0x20]
add esp, 0x18
push 1
push dword [ebp + 0x24]
call edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.mfc140.dll_Ordinal_1535]
lea ecx, [ebp - 0x38]
push eax
call esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x20]
mov ebx, dword [sym.imp.mfc140.dll_Ordinal_12512]
call ebx
movss xmm0, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
mov eax, dword [ebp + 8]
sub esp, 0x18
mov byte [ebp - 4], 5
movss dword [esp + 0x14], xmm0
movss xmm0, dword [ebp - 0x14]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [esp + 8], xmm0
push dword [eax]
call fcn.00464800
push 1
push eax
lea ecx, [ebp - 0x18]
call edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x40]
call esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xd
call ebx
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop esi
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x30