Function at 0x1400a4fb0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rbp - 8], rax
movaps xmm6, xmm2
movaps xmm7, xmm1
xor r13d, r13d
mov rbx, qword [0x1401d5688]
lea rdi, [0x1401d5678]
mov rsi, qword [0x1401d5690]
mov rcx, rdi
mov r14, qword [0x1401d5678]
cmp rsi, 0xf
cmova rcx, r14
cmp rbx, 4
jne 0x1400a52c2
mov r8, rbx
lea rdx, str.BPro
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400a52c2
cvttss2si eax, xmm7
mov dword [0x1401d569c], eax
cvttss2si edx, xmm6
mov dword [0x1401d56a0], edx
lea rcx, [rbp - 0x50]
call fcn.140024310
mov r12, rax
mov edx, dword [0x1401d569c]
lea rcx, [rbp - 0x70]
call fcn.140024310
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rcx, rdx
sub rcx, r8
cmp rcx, 8
jb 0x1400a5104
lea rax, [r8 + 8]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rdx, 0xf
jbe 0x1400a5098
mov rbx, qword [rdi]
lea rax, [0x140146c18]
mov r15d, 8
lea r14, str.km.move_
cmp rax, rbx
jbe 0x1400a50cc
lea rax, [rbx + r8]
cmp r14, rax
ja 0x1400a50cc
cmp rbx, r14
ja 0x1400a50c4
mov rsi, r13
jmp 0x1400a50cf
mov rsi, rbx
sub rsi, r14
jmp 0x1400a50cf
mov rsi, r15
inc r8
lea rcx, [rbx + 8]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub r15, rsi
lea rdx, [r14 + 8]
add rdx, rsi
lea rcx, [rbx + rsi]
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a5129
mov r15d, 8
mov qword [rsp + 0x28], r15
lea r14, str.km.move_
mov qword [rsp + 0x20], r14
mov edx, r15d
mov rcx, rdi
call fcn.140066ea0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rdi + 0x18], sendto
mov qword [rdi + 0x10], r13
mov byte [rdi], 0
mov r8d, 1
lea rdx, [0x140146bb8]
lea rcx, [rsp + 0x50]
call fcn.140033b70
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x18], sendto
mov qword [rax + 0x10], r13
mov byte [rax], 0
mov r9, r12
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400a5600
nop
mov r8d, 3
lea rdx, [0x140146bb4]
lea rcx, [rsp + 0x70]
call fcn.140033b70
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x28], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp - 0x18], xmm7
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], sendto
mov byte [rax], 0
lea rcx, [rsp + 0x70]
call fcn.140022fc0
nop
lea rcx, [rsp + 0x30]
call fcn.140022fc0
nop
lea rcx, [rsp + 0x50]
call fcn.140022fc0
nop
lea rcx, [rbp - 0x70]
call fcn.140022fc0
nop
lea rcx, [rbp - 0x50]
call fcn.140022fc0
lea rdx, [rbp - 0x28]
movq rcx, xmm6
psrldq xmm7, 8
movq rax, xmm7
cmp rax, 0xf
cmova rdx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400a5240
lea rcx, [rsp + 0x30]
call fcn.1400224d0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x30]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1401d5670]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a52a9
lea rdx, str.Failed_to_write_to_serial_port_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140037c30
lea rdx, [0x140037e00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x30]
call fcn.140022fc0
nop
lea rcx, [rbp - 0x28]
call fcn.140022fc0
jmp 0x1400a5374
cmp rsi, 0xf
cmova rdi, r14
cmp rbx, 3
jne 0x1400a5374
mov r8, rbx
lea rdx, [0x140146bb0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400a5374
cmp qword [0x1401d6e90], r13
jbe 0x1400a5374
inc dword [0x1401d72b0]
mov dword [0x1401d72b4], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x1401d72ac], eax
cvttss2si eax, xmm7
mov dword [0x1401d569c], eax
cvttss2si eax, xmm6
mov dword [0x1401d56a0], eax
movups xmm0, xmmword [0x1401d5698]
movups xmmword [0x1401d72b8], xmm0
movups xmm1, xmmword [0x1401d56a8]
movups xmmword [0x1401d72c8], xmm1
movups xmm0, xmmword [0x1401d56b8]
movups xmmword [0x1401d72d8], xmm0
movsd xmm1, qword [0x1401d56c8]
movsd qword [0x1401d72e8], xmm1
mov qword [0x1401d569c], r13
lea rcx, [0x1401d6e80]
call fcn.1400a4ed0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140116ee0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret