Function at 0x14007b120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1401e8080]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx ebx, cl
xor r12d, r12d
mov eax, dword [reloc.WS2_32.dll_accept]
cmp eax, 3
jne 0x14007b166
lea rdx, str.km.lock_mm
jmp 0x14007b17b
lea rcx, str.km.lock_ms1
lea rdx, str.km.lock_ms2
cmp eax, 1
cmove rdx, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x14007b191
lea rcx, [rbp + 7]
call fcn.1400044a0
nop
mov edx, ebx
lea rcx, [rbp - 0x21]
call fcn.1400051c0
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14007b243
lea r8, [rcx + 1]
mov qword [rdi + 0x10], r8
mov rbx, rdi
cmp rdx, 0x10
jb 0x14007b1da
mov rbx, qword [rdi]
lea rax, [0x1401d20fd]
mov r15d, 1
lea r14, [0x1401d20fc]
cmp rax, rbx
jbe 0x14007b20e
lea rax, [rbx + rcx]
cmp r14, rax
ja 0x14007b20e
cmp rbx, r14
ja 0x14007b206
mov rsi, r12
jmp 0x14007b211
mov rsi, rbx
sub rsi, r14
jmp 0x14007b211
mov rsi, r15
lea rcx, [rbx + 1]
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 + 1]
add rdx, rsi
lea rcx, [rbx + rsi]
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14007b270
mov r15d, 1
mov qword [rsp + 0x28], r15
lea r14, [0x1401d20fc]
mov qword [rsp + 0x20], r14
xor r9d, r9d
movzx r8d, byte [rbp - 0x69]
mov edx, r15d
mov rcx, rdi
call fcn.14001cc60
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x61], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x51], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov r8d, 3
lea rdx, [0x1401d20d4]
lea rcx, [rbp - 0x61]
call fcn.14000d740
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x31], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rbp - 0x41]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 7]
call fcn.14000d740
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x14007b33e
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b338
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007b338
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e3904
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x14007b37c
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b377
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007b377
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e3904
movdqa xmm0, xmmword [0x1401d4600]
movdqu xmmword [rbp - 0x51], xmm0
mov byte [rbp - 0x61], 0
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14007b3cb
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b3c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007b3c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e3904
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 1]
mov r8d, dword [rbp + 0x17]
mov rcx, qword [0x1401ea700]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14007b41b
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.140004140
lea rdx, [0x140010590]
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 + 0x1f]
cmp rdx, 0x10
jb 0x14007b459
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b454
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007b454
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e3904
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400e3650
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret