Function at 0x14000e520
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140143080]
xor rax, rsp
mov qword [rbp], rax
mov ebx, r8d
mov edi, edx
xor r13d, r13d
lea rcx, str.moving_to:__d___d_n
call fcn.14000d800
mov edx, ebx
lea rcx, [rbp - 0x48]
call fcn.14000d860
mov r12, rax
mov edx, edi
lea rcx, [rbp - 0x68]
call fcn.14000d860
mov rsi, rax
mov r8, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rcx, rdx
sub rcx, r8
cmp rcx, 8
jb 0x14000e61b
lea rax, [r8 + 8]
mov qword [rsi + 0x10], rax
mov rbx, rsi
cmp rdx, 0xf
jbe 0x14000e5af
mov rbx, qword [rsi]
lea rax, [0x1401236d0]
mov r15d, 8
lea r14, str.km.move_
cmp rax, rbx
jbe 0x14000e5e3
lea rax, [rbx + r8]
cmp r14, rax
ja 0x14000e5e3
cmp rbx, r14
ja 0x14000e5db
mov rdi, r13
jmp 0x14000e5e6
mov rdi, rbx
sub rdi, r14
jmp 0x14000e5e6
mov rdi, r15
inc r8
lea rcx, [rbx + 8]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub r15, rdi
lea rdx, [r14 + 8]
add rdx, rdi
lea rcx, [rbx + rdi]
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000e649
mov r15d, 8
mov qword [rsp + 0x28], r15
lea r14, str.km.move_
mov qword [rsp + 0x20], r14
xor r9d, r9d
movzx r8d, byte [rsp + 0x30]
mov edx, r15d
mov rcx, rsi
call fcn.140012140
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], r13
mov byte [rsi], 0
mov r8d, 1
lea rdx, [0x14012334c]
lea rcx, [rsp + 0x58]
call fcn.1400110c0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r13
mov byte [rax], 0
mov r9, r12
lea r8, [rsp + 0x38]
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.140011820
nop
mov r8d, 3
lea rdx, [0x1401236ac]
lea rcx, [rsp + 0x78]
call fcn.1400110c0
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x20], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm7
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x78]
call fcn.140007fb0
nop
lea rcx, [rsp + 0x38]
call fcn.140007fb0
nop
lea rcx, [rsp + 0x58]
call fcn.140007fb0
nop
lea rcx, [rbp - 0x68]
call fcn.140007fb0
nop
lea rcx, [rbp - 0x48]
call fcn.140007fb0
lea rdx, [rbp - 0x20]
movq rcx, xmm6
psrldq xmm7, 8
movq rax, xmm7
cmp rax, 0xf
cmova rdx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000e765
lea rcx, [rsp + 0x38]
call fcn.140004800
nop
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x28]
mov r8d, dword [rsp + 0x48]
mov rcx, qword [0x1402eda60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000e7ce
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.1400081d0
lea rdx, [0x140008890]
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 + 0x38]
call fcn.140007fb0
nop
lea rcx, [rbp - 0x20]
call fcn.140007fb0
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140106930
lea r11, [rsp + 0x130]
mov rbx, 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 rdi
pop rsi
pop rbp
ret