Function at 0x1400a5320
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 [0x140169040]
xor rax, rsp
mov qword [rbp - 8], rax
movaps xmm6, xmm2
movaps xmm7, xmm1
xor r13d, r13d
mov rbx, qword [0x1401de688]
lea rdi, [0x1401de678]
mov rsi, qword [0x1401de690]
mov rcx, rdi
mov r14, qword [0x1401de678]
cmp rsi, 0xf
cmova rcx, r14
cmp rbx, 4
jne 0x1400a5632
mov r8, rbx
lea rdx, str.BPro
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400a5632
cvttss2si eax, xmm7
mov dword [0x1401de69c], eax
cvttss2si edx, xmm6
mov dword [0x1401de6a0], edx
lea rcx, [rbp - 0x50]
call fcn.1400243a0
mov r12, rax
mov edx, dword [0x1401de69c]
lea rcx, [rbp - 0x70]
call fcn.1400243a0
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rcx, rdx
sub rcx, r8
cmp rcx, 8
jb 0x1400a5474
lea rax, [r8 + 8]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rdx, 0xf
jbe 0x1400a5408
mov rbx, qword [rdi]
lea rax, [0x14014dc70]
mov r15d, 8
lea r14, str.km.move_
cmp rax, rbx
jbe 0x1400a543c
lea rax, [rbx + r8]
cmp r14, rax
ja 0x1400a543c
cmp rbx, r14
ja 0x1400a5434
mov rsi, r13
jmp 0x1400a543f
mov rsi, rbx
sub rsi, r14
jmp 0x1400a543f
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 0x1400a5499
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.140066dd0
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], recvfrom
mov qword [rdi + 0x10], r13
mov byte [rdi], 0
mov r8d, 1
lea rdx, [0x14014dc10]
lea rcx, [rsp + 0x50]
call fcn.140033c60
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x18], recvfrom
mov qword [rax + 0x10], r13
mov byte [rax], 0
mov r9, r12
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400a6180
nop
mov r8d, 3
lea rdx, [0x14014dc0c]
lea rcx, [rsp + 0x70]
call fcn.140033c60
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], recvfrom
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 0x1400a55b0
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 [0x1401de670]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a5619
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.140037d30
lea rdx, [0x140037f00]
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 0x1400a56e4
cmp rsi, 0xf
cmova rdi, r14
cmp rbx, 3
jne 0x1400a56e4
mov r8, rbx
lea rdx, [0x14014dc08]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400a56e4
cmp qword [0x1401e0150], r13
jbe 0x1400a56e4
inc dword [0x1401e0570]
mov dword [0x1401e0574], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x1401e056c], eax
cvttss2si eax, xmm7
mov dword [0x1401de69c], eax
cvttss2si eax, xmm6
mov dword [0x1401de6a0], eax
movups xmm0, xmmword [0x1401de698]
movups xmmword [0x1401e0578], xmm0
movups xmm1, xmmword [0x1401de6a8]
movups xmmword [0x1401e0588], xmm1
movups xmm0, xmmword [0x1401de6b8]
movups xmmword [0x1401e0598], xmm0
movsd xmm1, qword [0x1401de6c8]
movsd qword [0x1401e05a8], xmm1
mov qword [0x1401de69c], r13
lea rcx, [0x1401e0140]
call fcn.1400a5240
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14011e4b0
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