Function at 0x140001060
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
lea rbp, [rax - 0xb98]
sub rsp, 0xc80
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0xb20], rax
movsd xmm6, qword [0x140003358]
mov ebx, ecx
mov rcx, qword [rdx]
mov rdi, rdx
call qword [sym.imp.libbu.dll_bu_setprogname]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.DEPRECATION_WARNING:__This_command_is_scheduled_for_removal.__Please_contact_the_developers_if_you_use_this_command._n_n
call fcn.140001010
mov ecx, 0xf4240
call qword [sym.imp.libbu.dll_bu_snooze]
cmp ebx, 1
jle 0x1400010fc
mov rcx, qword [rdi + 8]
lea rdx, [0x140003308]
call qword [sym.imp.libbu.dll_bu_strcmp]
test eax, eax
jne 0x1400010ed
movsd xmm6, qword [0x140003350]
jmp 0x1400010fa
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm6, xmm0
dec ebx
movaps xmmword [rsp + 0xc40], xmm10
movaps xmm8, xmm6
unpcklpd xmm8, xmm8
movaps xmmword [rsp + 0xc30], xmm11
cmp ebx, 1
jg 0x1400015ac
movsd xmm10, qword [0x140003360]
comisd xmm6, xmm10
movsd xmm11, qword [0x140003348]
jbe 0x140001144
comisd xmm11, xmm6
ja 0x1400015ac
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
test eax, eax
jne 0x1400015ac
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 2
lea rcx, [rbp + 0x720]
mov r9, rax
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x14000156d
mov qword [rsp + 0xca0], rsi
mov edi, 0xfffffff0
mov qword [rsp + 0xcb0], r14
mov esi, 0xfffffffe
movaps xmmword [rsp + 0xc50], xmm9
mov r14d, 0xfffffff8
movaps xmm9, xmm6
subsd xmm9, qword [0x140003358]
nop word [rax + rax]
comisd xmm9, xmm10
mov edx, eax
mov ebx, eax
jbe 0x140001362
comisd xmm11, xmm9
jbe 0x140001362
xor ecx, ecx
test eax, eax
je 0x1400012b2
cmp eax, 2
jb 0x1400012b2
cmp eax, 0x10
jb 0x140001281
mov eax, edx
and rax, rdi
nop word [rax + rax]
movq xmm1, qword [rbp + rcx*2 + 0x720]
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2ps xmm0, xmm1
movq xmm1, qword [rbp + rcx*2 + 0x728]
movups xmmword [rsp + rcx*4 + 0x20], xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2ps xmm0, xmm1
movq xmm1, qword [rbp + rcx*2 + 0x730]
movups xmmword [rsp + rcx*4 + 0x30], xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2ps xmm0, xmm1
movq xmm1, qword [rbp + rcx*2 + 0x738]
movups xmmword [rsp + rcx*4 + 0x40], xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2ps xmm0, xmm1
movups xmmword [rsp + rcx*4 + 0x50], xmm0
add rcx, 0x10
cmp rcx, rax
jl 0x140001210
mov eax, edx
and al, 0xf
cmp al, 2
jb 0x1400012b2
and rdx, rsi
nop dword [rax]
nop dword [rax + rax]
movd xmm1, dword [rbp + rcx*2 + 0x720]
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2ps xmm0, xmm1
movsd qword [rsp + rcx*4 + 0x20], xmm0
add rcx, 2
cmp rcx, rdx
jl 0x140001290
cmp rcx, rbx
jge 0x1400014f6
mov rax, rbx
sub rax, rcx
cmp rax, 4
jl 0x140001340
lea rdx, [rbx - 3]
nop dword [rax + rax]
movzx eax, word [rbp + rcx*2 + 0x720]
movd xmm0, eax
movzx eax, word [rbp + rcx*2 + 0x722]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
movzx eax, word [rbp + rcx*2 + 0x724]
cvtdq2ps xmm1, xmm1
movss dword [rsp + rcx*4 + 0x20], xmm0
movss dword [rsp + rcx*4 + 0x24], xmm1
movd xmm0, eax
movzx eax, word [rbp + rcx*2 + 0x726]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [rsp + rcx*4 + 0x28], xmm0
movss dword [rsp + rcx*4 + 0x2c], xmm1
add rcx, 4
cmp rcx, rdx
jl 0x1400012d0
cmp rcx, rbx
jge 0x1400014f6
nop word [rax + rax]
movzx eax, word [rbp + rcx*2 + 0x720]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + rcx*4 + 0x20], xmm0
inc rcx
cmp rcx, rbx
jl 0x140001340
jmp 0x1400014f6
xor ecx, ecx
test eax, eax
je 0x140001419
cmp eax, 8
jb 0x140001419
and rdx, r14
nop dword [rax + rax]
movd xmm1, dword [rbp + rcx*2 + 0x720]
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2pd xmm0, xmm1
movd xmm1, dword [rbp + rcx*2 + 0x724]
mulpd xmm0, xmm8
cvtpd2ps xmm0, xmm0
movsd qword [rsp + rcx*4 + 0x20], xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2pd xmm0, xmm1
movd xmm1, dword [rbp + rcx*2 + 0x728]
mulpd xmm0, xmm8
cvtpd2ps xmm0, xmm0
movsd qword [rsp + rcx*4 + 0x28], xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2pd xmm0, xmm1
movd xmm1, dword [rbp + rcx*2 + 0x72c]
mulpd xmm0, xmm8
cvtpd2ps xmm0, xmm0
movsd qword [rsp + rcx*4 + 0x30], xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
cvtdq2pd xmm0, xmm1
mulpd xmm0, xmm8
cvtpd2ps xmm0, xmm0
movsd qword [rsp + rcx*4 + 0x38], xmm0
add rcx, 8
cmp rcx, rdx
jl 0x140001380
cmp rcx, rbx
jge 0x1400014f6
mov rax, rbx
sub rax, rcx
cmp rax, 4
jl 0x1400014d0
lea rdx, [rbx - 3]
nop word [rax + rax]
movzx eax, word [rbp + rcx*2 + 0x720]
movd xmm0, eax
movzx eax, word [rbp + rcx*2 + 0x722]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
movzx eax, word [rbp + rcx*2 + 0x724]
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm6
mulsd xmm1, xmm6
cvtpd2ps xmm0, xmm0
movss dword [rsp + rcx*4 + 0x20], xmm0
cvtpd2ps xmm0, xmm1
movd xmm1, eax
movzx eax, word [rbp + rcx*2 + 0x726]
cvtdq2pd xmm1, xmm1
movss dword [rsp + rcx*4 + 0x24], xmm0
mulsd xmm1, xmm6
cvtpd2ps xmm0, xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movss dword [rsp + rcx*4 + 0x28], xmm0
mulsd xmm1, xmm6
cvtpd2ps xmm0, xmm1
movss dword [rsp + rcx*4 + 0x2c], xmm0
add rcx, 4
cmp rcx, rdx
jl 0x140001440
cmp rcx, rbx
jge 0x1400014f6
nop word [rax + rax]
movzx eax, word [rbp + rcx*2 + 0x720]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm6
cvtpd2ps xmm0, xmm0
movss dword [rsp + rcx*4 + 0x20], xmm0
inc rcx
cmp rcx, rbx
jl 0x1400014d0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov r9, rax
mov edx, 4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
je 0x140001529
lea rcx, [0x14000333c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 2
lea rcx, [rbp + 0x720]
mov r9, rax
mov r8d, 0x200
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jg 0x1400011d0
movaps xmm9, xmmword [rsp + 0xc50]
mov r14, qword [rsp + 0xcb0]
mov rsi, qword [rsp + 0xca0]
movaps xmm11, xmmword [rsp + 0xc30]
xor eax, eax
movaps xmm10, xmmword [rsp + 0xc40]
mov rcx, qword [rbp + 0xb20]
xor rcx, rsp
call fcn.140001650
movaps xmm6, xmmword [rsp + 0xc70]
movaps xmm8, xmmword [rsp + 0xc60]
add rsp, 0xc80
pop rdi
pop rbx
pop rbp
ret
lea rdx, str.Usage:_i_f___n__scale____shorts___floats_n
mov ecx, 1
call qword [sym.imp.libbu.dll_bu_exit]
int3