Function at 0x4f87d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [esi*4]
push eax
call fcn.00593e38
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f8810
push str._ERROR:_memory_allocation_failure..._n
call fcn.00592f31
add eax, 0x40
push eax
call fcn.0059320e
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 1
movd xmm2, dword [ebp + 0x20]
movsd xmm1, qword [0x62d3c8]
cvtdq2ps xmm2, xmm2
movd xmm3, dword [ebp + 0x1c]
cvtps2pd xmm0, xmm2
cvtdq2ps xmm3, xmm3
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movsd xmm1, qword [0x5edb78]
movss dword [ebp - 0x10], xmm0
cvtps2pd xmm0, xmm2
divsd xmm1, xmm0
cvtps2pd xmm0, xmm3
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [ebp - 8], xmm0
jne 0x4f887c
movsd xmm1, qword [0x5d4e70]
cvtps2pd xmm0, xmm2
divsd xmm1, xmm0
cvtps2pd xmm0, xmm3
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [ebp - 8], xmm0
mov eax, dword [ebp + 0xc]
push ebx
shl eax, 9
push 0
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00595cb4
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0x18], ebx
jle 0x4f8bae
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xc], eax
lea ebx, [ebx]
mov eax, dword [ebp + 0x10]
dec eax
je 0x4f8aa8
sub eax, 3
mov eax, dword [ebp + 8]
push dword [eax]
je 0x4f89b4
push esi
push 2
push edi
call fcn.00595b79
push esi
push edi
call fcn.004f98e0
movss xmm1, dword [ebp - 8]
add esp, 0x18
movss xmm2, dword [ebp - 0x10]
xor ecx, ecx
cmp esi, 4
jl 0x4f897d
mov ebx, dword [ebp - 0xc]
lea eax, [esi - 4]
shr eax, 2
lea edx, [edi + 4]
inc eax
mov dword [ebp - 0x1c], eax
mov esi, eax
lea ecx, [eax*4]
lea esp, [esp]
movsx eax, word [edx - 4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [ebx], xmm0
movsx eax, word [edx - 2]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [ebx + 4], xmm0
movsx eax, word [edx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [ebx + 8], xmm0
movsx eax, word [edx + 2]
add edx, 8
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [ebx + 0xc], xmm0
add ebx, 0x10
dec esi
jne 0x4f8910
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
cmp ecx, esi
jge 0x4f8b8f
mov edx, dword [ebp + 0x24]
lea eax, [ecx + ebx]
lea edx, [edx + eax*4]
mov edi, edi
movsx eax, word [edi + ecx*2]
inc ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [edx], xmm0
add edx, 4
cmp ecx, esi
jl 0x4f8990
jmp 0x4f8b8f
lea eax, [esi + esi]
push eax
push 2
push edi
call fcn.00595b79
push esi
push edi
call fcn.004f98e0
add esp, 0x18
xor ecx, ecx
cmp esi, 4
jl 0x4f8a67
lea ebx, [esi - 4]
mov esi, dword [ebp - 0xc]
shr ebx, 2
lea edx, [edi + 4]
inc ebx
lea ecx, [ebx*4]
lea esp, [esp]
movzx eax, word [edx - 4]
lea esi, [esi + 0x10]
mov word [ebp - 2], ax
lea edx, [edx + 0x10]
movzx eax, word [edx - 0x12]
mov word [ebp - 4], ax
movss xmm0, dword [ebp - 4]
movss dword [esi - 0x10], xmm0
movzx eax, word [edx - 0x10]
mov word [ebp - 2], ax
movzx eax, word [edx - 0xe]
mov word [ebp - 4], ax
movss xmm0, dword [ebp - 4]
movss dword [esi - 0xc], xmm0
movzx eax, word [edx - 0xc]
mov word [ebp - 2], ax
movzx eax, word [edx - 0xa]
mov word [ebp - 4], ax
movss xmm0, dword [ebp - 4]
movss dword [esi - 8], xmm0
movzx eax, word [edx - 8]
mov word [ebp - 2], ax
movzx eax, word [edx - 6]
mov word [ebp - 4], ax
movss xmm0, dword [ebp - 4]
movss dword [esi - 4], xmm0
dec ebx
jne 0x4f89f0
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
cmp ecx, esi
jge 0x4f8b8f
mov edx, dword [ebp + 0x24]
lea eax, [ecx + ebx]
lea edx, [edx + eax*4]
jmp 0x4f8a80
movzx eax, word [edi + ecx*4]
lea edx, [edx + 4]
mov word [ebp - 2], ax
movzx eax, word [edi + ecx*4 + 2]
inc ecx
mov word [ebp - 4], ax
movss xmm0, dword [ebp - 4]
movss dword [edx - 4], xmm0
cmp ecx, esi
jl 0x4f8a80
jmp 0x4f8b8f
mov eax, dword [ebp + 8]
push dword [eax]
push esi
push 1
push edi
call fcn.00595b79
add esp, 0x10
cmp eax, esi
jne 0x4f8bc0
movss xmm1, dword [ebp - 8]
xor ecx, ecx
movss xmm2, dword [ebp - 0x10]
cmp esi, 4
jl 0x4f8b5d
mov ebx, dword [ebp - 0xc]
lea eax, [esi - 4]
shr eax, 2
lea edx, [edi + 4]
inc eax
mov dword [ebp - 0x1c], eax
mov esi, eax
lea ecx, [eax*4]
nop
movsx eax, word [edx - 4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [ebx], xmm0
movsx eax, word [edx - 2]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [ebx + 4], xmm0
movsx eax, word [edx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [ebx + 8], xmm0
movsx eax, word [edx + 2]
add edx, 8
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [ebx + 0xc], xmm0
add ebx, 0x10
dec esi
jne 0x4f8af0
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
cmp ecx, esi
jge 0x4f8b8f
mov edx, dword [ebp + 0x24]
lea eax, [ecx + ebx]
lea edx, [edx + eax*4]
lea ebx, [ebx]
movsx eax, word [edi + ecx*2]
inc ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, xmm1
movss dword [edx], xmm0
add edx, 4
cmp ecx, esi
jl 0x4f8b70
mov ecx, dword [ebp - 0x18]
lea eax, [esi*4]
add dword [ebp - 0xc], eax
inc ecx
add ebx, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
cmp ecx, dword [ebp + 0x18]
jl 0x4f88b0
push edi
call fcn.00592c4b
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret