Function at 0x658090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f9a3d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
add eax, 0x15c
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
push 4
push eax
call edi
mov eax, dword [ebp - 0x18]
push esi
push 1
add eax, 0x17c
push 4
push eax
call edi
mov eax, dword [ebp - 0x18]
push esi
push 1
add eax, 0x180
push 4
push eax
call edi
mov eax, dword [ebp - 0x18]
push esi
push 1
push 2
lea ecx, [eax + 0x128]
lea edi, [eax + 0x1a0]
mov dword [ebp - 0x14], ecx
lea eax, [edi + 0x10]
mov dword [eax], 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x40
mov dword [edi + 0x14], 0
cmp dword [edi + 0x10], 0
jbe 0x6581f0
nop dword [eax]
push esi
push 1
lea eax, [ebp - 0x10]
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
push 0x10
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, word [ebp - 0x10]
add esp, 0x20
mov dword [ebp - 0x1c], eax
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00495da0
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0xd], 0
jne 0x658178
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [eax + 0x10]
jae 0x6581d7
cmp dword [edi + 4], 0x71c71c7
je 0x6584f8
mov esi, dword [edi]
mov dword [ebp - 0x24], edi
push 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.006df8c3
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ecx + 0x10], eax
push ecx
push dword [ebp - 0x2c]
mov dword [ecx], esi
push dword [ebp - 0x30]
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov word [ecx + 0xc], 0
mov ecx, edi
call fcn.00451330
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
movups xmm0, xmmword [ecx]
movups xmmword [eax + 0x14], xmm0
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x10]
jb 0x658130
mov edi, dword [ebp - 0x18]
push esi
add edi, 0x188
push 1
lea eax, [edi + 0x10]
mov dword [eax], 0
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [edi + 0x14], 0
cmp dword [edi + 0x10], 0
jbe 0x6582f5
push esi
push 1
lea eax, [ebp - 0x10]
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [ebp - 0x18]
push esi
push 1
add eax, 0x14c
push 0xc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, word [ebp - 0x10]
add esp, 0x20
mov dword [ebp - 0x1c], eax
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00495da0
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0xd], 0
jne 0x658270
movzx ecx, word [ebp - 0x10]
cmp ecx, dword [eax + 0x10]
jae 0x6582cd
cmp dword [edi + 4], 0x7ffffff
je 0x6584f8
mov esi, dword [edi]
mov dword [ebp - 0x24], edi
push 0x20
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], 0
call fcn.006df8c3
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], ecx
mov ecx, edi
push eax
push dword [ebp - 0x2c]
mov dword [eax], esi
push dword [ebp - 0x30]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00451330
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
movq xmm0, qword [edx + 0x14c]
movq qword [eax + 0x14], xmm0
mov ecx, dword [edx + 0x154]
mov dword [eax + 0x1c], ecx
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x10]
jb 0x658222
mov eax, dword [ebp - 0x18]
push esi
push 1
push 2
lea ecx, [eax + 0x158]
lea edi, [eax + 0x1b8]
mov dword [ebp - 0x1c], ecx
lea eax, [edi + 0x10]
mov dword [eax], 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [edi + 0x14], 0
cmp dword [edi + 0x10], 0
jbe 0x6583ec
push esi
push 1
lea eax, [ebp - 0x14]
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, word [ebp - 0x14]
add esp, 0x20
mov dword [ebp - 0x20], eax
mov ecx, edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00495da0
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0xd], 0
jne 0x658378
movzx ecx, word [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jae 0x6583d5
cmp dword [edi + 4], 0xaaaaaaa
je 0x6584f8
mov esi, dword [edi]
mov dword [ebp - 0x2c], edi
push 0x18
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0
call fcn.006df8c3
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0
mov dword [eax + 0x10], ecx
mov ecx, edi
push eax
push dword [ebp - 0x38]
mov dword [eax], esi
push dword [ebp - 0x3c]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00451330
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov dword [eax + 0x14], ecx
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x10]
jb 0x658330
mov edi, dword [ebp - 0x18]
lea eax, [edi + 0x1d4]
push eax
push esi
lea ecx, [edi + 0x1f8]
call fcn.0064cfe0
lea eax, [edi + 0x1d8]
push eax
push esi
lea ecx, [edi + 0x210]
call fcn.0064cfe0
lea eax, [edi + 0x1e4]
push eax
push esi
lea ecx, [edi + 0x258]
call fcn.0064cfe0
lea eax, [edi + 0x1e8]
push eax
push esi
lea ecx, [edi + 0x270]
call fcn.0064cfe0
lea eax, [edi + 0x1dc]
push eax
push esi
lea ecx, [edi + 0x228]
call fcn.0064cfe0
lea eax, [edi + 0x1e0]
push eax
push esi
lea ecx, [edi + 0x240]
call fcn.0064cfe0
lea eax, [edi + 0x1ec]
push eax
push esi
lea ecx, [edi + 0x288]
call fcn.0064cfe0
movss xmm1, dword [edi + 0x168]
ucomiss xmm1, dword [0x70196c]
lahf
test ah, 0x44
jnp 0x6584e5
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x14c]
movss dword [edi + 0x14c], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x154]
movss dword [edi + 0x154], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x150]
movss dword [edi + 0x150], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x1d4]
mulss xmm1, dword [edi + 0x1d8]
movss dword [edi + 0x1d4], xmm0
movss dword [edi + 0x1d8], xmm1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00451520
int3