Function at 0x14007bad0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1401f1080]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movzx ebx, cl
xor edi, edi
mov eax, dword [reloc.WS2_32.dll_accept]
cmp eax, 3
jne 0x14007bb0e
lea rdx, str.km.lock_mm
jmp 0x14007bb23
lea rcx, str.km.lock_ms1
lea rdx, str.km.lock_ms2
cmp eax, 1
cmove rdx, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x2f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x3f], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], dil
jne 0x14007bb40
lea rcx, [rbp + 0x2f]
call fcn.140004770
nop
mov edx, ebx
lea rcx, [rbp + 7]
call fcn.140005490
nop
mov r9d, 1
lea r8, [0x1401da854]
xor edx, edx
mov rcx, rax
call fcn.14001d4d0
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r8d, 3
lea rdx, [0x1401da858]
lea rcx, [rbp - 0x39]
call fcn.14000dfb0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 9], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rbp - 0x19]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0x2f]
call fcn.14000dfb0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14007bc44
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007bc3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007bc3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e71e4
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x14007bc82
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007bc7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007bc7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e71e4
movdqa xmm0, xmmword [0x1401dd080]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x14007bcd1
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007bccc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007bccc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e71e4
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x27]
mov r8d, dword [rbp + 0x3f]
mov rcx, qword [0x1401f3720]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14007bd21
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.140004410
lea rdx, [0x140010e00]
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
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x14007bd5f
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007bd5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007bd5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e71e4
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400e6f30
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret