Function at 0x403a30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx edi, word [eax]
mov eax, 1
mov dword [ebp + 0x10], edi
movzx edx, di
cmp ax, di
jg 0x403a86
mov ecx, edx
mov edi, 0x4f8830
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, 0x500b78
lea ecx, [esi + 8]
nop dword [eax]
movsd xmm0, qword [ecx]
lea ecx, [ecx + 8]
movsd qword [eax], xmm0
lea eax, [eax + 8]
sub edx, 1
jne 0x403a70
mov edi, dword [ebp + 0x10]
mov cx, word [ebp + 0x14]
xor eax, eax
mov word [0x4699e4], ax
cmp cx, 1
jne 0x403abd
push esi
mov esi, dword [ebp + 8]
push esi
push edi
call fcn.00401ae0
push edi
push 0x452398
call fcn.00404250
mov ax, word [0x4699e4]
add esp, 0x14
mov cx, word [ebp + 0x14]
jmp 0x403ac0
mov esi, dword [ebp + 8]
test ax, ax
jg 0x403acb
cmp cx, 1
jle 0x403aef
cmp byte [0x51b4c7], 0
je 0x403ae2
push edi
push 0x452398
call fcn.00403860
add esp, 8
push dword [ebp + 0xc]
push esi
push edi
call fcn.00403d10
add esp, 0xc
push dword [ebp + 0xc]
push esi
push edi
call fcn.00403dd0
add esp, 0xc
cmp byte [0x51b4c7], 0
je 0x403d05
push 0x45edc0
push 0x4522ec
push 0x45e9c0
push str._s_s_s
push 0x45ebc0
call fcn.004045b0
push 0x452298
push 0x45ebc0
call fcn.00410c78
mov ecx, 1
mov dword [0x4f04c0], eax
mov ax, word [0x4699e2]
mov edx, ecx
add esp, 0x1c
mov dword [ebp - 4], ecx
cmp dx, ax
jg 0x403bb1
mov esi, 1
cmp dx, ax
jg 0x403ba2
movsx eax, cx
lea edi, [eax*8]
nop word [eax + eax]
push dword [0x4f04c0]
mov ecx, dword [ebp + 8]
movsx eax, si
push 1
push 8
mov eax, dword [ecx + eax*4]
add eax, edi
push eax
call fcn.00410f2a
mov ax, word [0x4699e2]
inc esi
add esp, 0x10
cmp si, ax
jle 0x403b70
mov ecx, dword [ebp - 4]
mov edx, 1
inc ecx
mov dword [ebp - 4], ecx
cmp cx, ax
jle 0x403b53
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push dword [0x4f04c0]
call fcn.0041098a
mov ax, word [0x4699e4]
mov ecx, 1
add esp, 4
xorps xmm2, xmm2
cmp cx, di
jg 0x403cce
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 4]
movzx eax, di
add ecx, 8
mov dword [ebp - 0xc], ecx
mov edi, 8
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
xorps xmm1, xmm1
mov esi, eax
nop dword [eax + eax]
mov eax, dword [edx]
add edx, 4
movsd xmm0, qword [edi + eax]
mulsd xmm0, qword [ecx]
add ecx, 8
addsd xmm1, xmm0
sub esi, 1
jne 0x403c00
movsd xmm0, qword [edi + 0x500b70]
mov eax, dword [ebp - 8]
subsd xmm0, xmm1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
movsd qword [edi + 0x500b70], xmm0
add edi, 8
sub dword [ebp - 4], 1
andps xmm0, xmmword [0x4525c0]
maxsd xmm0, xmm2
movaps xmm2, xmm0
jne 0x403bf3
comisd xmm2, xmmword [0x452540]
mov ax, word [0x4699e4]
mov edi, dword [ebp + 0x10]
jbe 0x403cc9
cmp ax, 0xb
jge 0x403cc9
mov esi, dword [ebp + 0xc]
mov eax, 0x4f8830
movzx edx, di
lea ecx, [esi + 8]
movsd xmm0, qword [eax]
addsd xmm0, qword [ecx]
add ecx, 8
movsd qword [eax], xmm0
add eax, 8
sub edx, 1
jne 0x403c75
mov edx, 0x500b70
movzx ecx, di
lea eax, [esi + 8]
sub edx, esi
nop dword [eax]
movsd xmm0, qword [edx + eax]
lea eax, [eax + 8]
movsd qword [eax - 8], xmm0
sub ecx, 1
jne 0x403ca0
mov ax, word [0x4699e4]
mov cx, word [ebp + 0x14]
inc ax
mov word [0x4699e4], ax
jmp 0x403abd
mov ecx, 1
test ax, ax
jle 0x403d05
cmp cx, di
jg 0x403d05
mov ecx, dword [ebp + 0xc]
mov edx, 0x4f8828
sub edx, ecx
lea eax, [ecx + 8]
movzx ecx, di
nop dword [eax + eax]
movsd xmm0, qword [edx + eax]
addsd xmm0, qword [eax]
movsd qword [eax], xmm0
add eax, 8
sub ecx, 1
jne 0x403cf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret