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 - 0x48], xmm9
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 xmm9, xmm6
unpcklpd xmm9, xmm9
movaps xmmword [rsp + 0xc30], xmm11
cmp ebx, 1
jg 0x14000159c
movsd xmm10, qword [0x140003360]
comisd xmm6, xmm10
movsd xmm11, qword [0x140003348]
jbe 0x140001144
comisd xmm11, xmm6
ja 0x14000159c
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 0x14000159c
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 0x14000155d
mov qword [rsp + 0xca0], rsi
mov edi, 0xfffffff0
mov qword [rsp + 0xcb0], r14
mov esi, 0xfffffffe
movaps xmmword [rsp + 0xc60], xmm8
mov r14d, 0xfffffff8
movaps xmm8, xmm6
subsd xmm8, qword [0x140003358]
nop word [rax + rax]
comisd xmm8, xmm10
mov edx, eax
mov ebx, eax
jbe 0x140001352
comisd xmm11, xmm8
jbe 0x140001352
xor ecx, ecx
test eax, eax
je 0x1400012a7
cmp eax, 2
jb 0x1400012a7
cmp eax, 0x10
jb 0x140001280
mov eax, edx
and rax, rdi
movq xmm0, qword [rbp + rcx*2 + 0x720]
movq xmm1, qword [rbp + rcx*2 + 0x728]
punpcklwd xmm1, xmm1
psrad xmm1, 0x10
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
cvtdq2ps xmm0, xmm0
movups xmmword [rsp + rcx*4 + 0x20], xmm0
cvtdq2ps xmm0, xmm1
movq xmm1, qword [rbp + rcx*2 + 0x730]
movups xmmword [rsp + rcx*4 + 0x30], xmm0
punpcklwd xmm1, xmm1
psrad xmm1, 0x10
cvtdq2ps xmm0, xmm1
movq xmm1, qword [rbp + rcx*2 + 0x738]
movups xmmword [rsp + rcx*4 + 0x40], xmm0
punpcklwd xmm1, xmm1
psrad xmm1, 0x10
cvtdq2ps xmm0, xmm1
movups xmmword [rsp + rcx*4 + 0x50], xmm0
add rcx, 0x10
cmp rcx, rax
jl 0x140001207
mov eax, edx
and al, 0xf
cmp al, 2
jb 0x1400012a7
and rdx, rsi
movd xmm0, dword [rbp + rcx*2 + 0x720]
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
cvtdq2ps xmm0, xmm0
movsd qword [rsp + rcx*4 + 0x20], xmm0
add rcx, 2
cmp rcx, rdx
jl 0x140001283
cmp rcx, rbx
jge 0x1400014e6
mov rax, rbx
sub rax, rcx
cmp rax, 4
jl 0x140001330
lea rdx, [rbx - 3]
movsx eax, word [rbp + rcx*2 + 0x720]
movd xmm0, eax
movsx eax, word [rbp + rcx*2 + 0x722]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
movsx 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
movsx 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 0x1400012c0
cmp rcx, rbx
jge 0x1400014e6
nop word [rax + rax]
movsx 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 0x140001330
jmp 0x1400014e6
xor ecx, ecx
test eax, eax
je 0x140001411
cmp eax, 8
jb 0x140001411
and rdx, r14
nop dword [rax + rax]
movd xmm0, dword [rbp + rcx*2 + 0x720]
movd xmm1, dword [rbp + rcx*2 + 0x724]
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
cvtdq2pd xmm0, xmm0
punpcklwd xmm1, xmm1
mulpd xmm0, xmm9
psrad xmm1, 0x10
cvtpd2ps xmm0, xmm0
movsd qword [rsp + rcx*4 + 0x20], xmm0
cvtdq2pd xmm0, xmm1
movd xmm1, dword [rbp + rcx*2 + 0x728]
mulpd xmm0, xmm9
punpcklwd xmm1, xmm1
cvtpd2ps xmm0, xmm0
psrad xmm1, 0x10
movsd qword [rsp + rcx*4 + 0x28], xmm0
cvtdq2pd xmm0, xmm1
movd xmm1, dword [rbp + rcx*2 + 0x72c]
mulpd xmm0, xmm9
punpcklwd xmm1, xmm1
cvtpd2ps xmm0, xmm0
psrad xmm1, 0x10
movsd qword [rsp + rcx*4 + 0x30], xmm0
cvtdq2pd xmm0, xmm1
mulpd xmm0, xmm9
cvtpd2ps xmm0, xmm0
movsd qword [rsp + rcx*4 + 0x38], xmm0
add rcx, 8
cmp rcx, rdx
jl 0x140001370
cmp rcx, rbx
jge 0x1400014e6
mov rax, rbx
sub rax, rcx
cmp rax, 4
jl 0x1400014c0
lea rdx, [rbx - 3]
nop
movsx eax, word [rbp + rcx*2 + 0x720]
movd xmm0, eax
movsx eax, word [rbp + rcx*2 + 0x722]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
movsx 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
movsx 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 0x140001430
cmp rcx, rbx
jge 0x1400014e6
nop word [rax + rax]
movsx 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 0x1400014c0
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 0x140001519
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 xmm8, xmmword [rsp + 0xc60]
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.140001640
movaps xmm6, xmmword [rsp + 0xc70]
movaps xmm9, xmmword [rsp + 0xc50]
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