Function at 0x14005e0d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov ebx, r8d
mov edi, edx
xor r13d, r13d
lea r9, [rsp + 0x45]
mov ecx, 0xa
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r9], cl
mov ecx, edx
test edx, edx
jne 0x14005e120
lea r8, [rsp + 0x45]
mov rdx, r9
lea rcx, [rbp - 0x10]
call fcn.14005ecc0
nop
mov edx, ebx
lea rcx, [rbp + 0x30]
call fcn.14005da60
mov r12, rax
mov edx, edi
lea rcx, [rbp + 0x10]
call fcn.14005da60
mov rsi, rax
mov r8, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rcx, rdx
sub rcx, r8
cmp rcx, 8
jb 0x14005e20f
lea rax, [r8 + 8]
mov qword [rsi + 0x10], rax
mov rbx, rsi
cmp rdx, 0xf
jbe 0x14005e1a3
mov rbx, qword [rsi]
lea rax, [0x140158730]
mov r15d, 8
lea r14, str.km.move_
cmp rax, rbx
jbe 0x14005e1d7
lea rax, [rbx + r8]
cmp r14, rax
ja 0x14005e1d7
cmp rbx, r14
ja 0x14005e1cf
mov rdi, r13
jmp 0x14005e1da
mov rdi, rbx
sub rdi, r14
jmp 0x14005e1da
mov rdi, r15
lea rcx, [rbx + 8]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub r15, rdi
lea rdx, [r14 + 8]
add rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14005e234
mov r15d, 8
mov qword [rsp + 0x28], r15
lea r14, str.km.move_
mov qword [rsp + 0x20], r14
mov edx, r15d
mov rcx, rsi
call fcn.14005d830
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov r8d, 1
lea rdx, [0x140158720]
lea rcx, [rsp + 0x50]
call fcn.1400584c0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov r9, r12
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.14005ea90
nop
mov r8d, 1
lea rdx, [0x140158720]
lea rcx, [rbp - 0x30]
call fcn.1400584c0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r9, [rbp - 0x10]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.14005ea90
nop
mov r8d, 3
lea rdx, [0x14015871c]
lea rcx, [rbp - 0x50]
call fcn.1400584c0
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x70], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm6
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea rcx, [rbp - 0x50]
call fcn.140058450
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14005e375
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e36f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e36f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011cbf8
nop
lea rcx, [rbp - 0x30]
call fcn.140058450
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14005e3bf
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e3b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e3b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011cbf8
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14005e3ff
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e3fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e3fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011cbf8
movdqa xmm0, xmmword [0x140160350]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [rbp + 0x10]
call fcn.140058450
nop
lea rcx, [rbp + 0x30]
call fcn.140058450
nop
lea rcx, [rbp - 0x10]
call fcn.140058450
lea rdx, [rbp - 0x70]
movq rcx, xmm7
psrldq xmm6, 8
movq rax, xmm6
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 0x14005e462
lea rcx, [rsp + 0x30]
call fcn.14005c750
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xa0]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1402197d8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005e4ce
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.14005e700
lea rdx, [0x14005e8d0]
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 [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14005e50f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e509
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e509
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011cbf8
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14005e54d
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e548
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005e548
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011cbf8
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret