Function at 0x140005d20
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, 0x100
mov rax, qword [0x140020040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov ebx, edx
mov r14, rcx
xor r12d, r12d
mov edx, r8d
lea rcx, [rbp - 0x19]
call fcn.1400089b0
nop
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400089b0
nop
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r8
lea esi, [r12 + 8]
cmp rax, rsi
jb 0x140005e0f
lea rax, [r8 + 8]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x30]
lea rax, [0x140018df8]
lea r15, str.km.move_
cmp rax, rbx
jbe 0x140005dd2
lea rax, [rbx + r8]
cmp r15, rax
ja 0x140005dd2
cmp rbx, r15
ja 0x140005dca
mov edi, r12d
jmp 0x140005dd5
mov rdi, rbx
sub rdi, r15
jmp 0x140005dd5
mov rdi, rsi
inc r8
lea rcx, [rbx + 8]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub rsi, rdi
lea rdx, [r15 + 8]
add rdx, rdi
lea rcx, [rbx + rdi]
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x30]
jmp 0x140005e21
mov qword [rsp + 0x28], rsi
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000a710
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x79], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x69], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r12
mov byte [rax], 0
mov r8d, 1
lea rdx, [0x140018dec]
lea rcx, [rbp - 0x79]
call fcn.1400088e0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r12
mov byte [rax], 0
lea r9, [rbp - 0x19]
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.140009b40
nop
mov r8d, 3
lea rdx, [0x140018de8]
lea rcx, [rbp - 0x59]
call fcn.1400088e0
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x140005f15
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014570
movdqa xmm0, xmmword [0x140019ef0]
movdqu xmmword [rbp - 0x49], xmm0
mov byte [rbp - 0x59], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x140005f65
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014570
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x140005fa3
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014570
movdqa xmm0, xmmword [0x140019ef0]
movdqu xmmword [rbp - 0x69], xmm0
mov byte [rbp - 0x79], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140005ff4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005fef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014570
movdqa xmm0, xmmword [0x140019ef0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x140006045
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006040
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006040
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014570
mov edi, dword [rbp + 0x1f]
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rbx, qword [rbp + 0xf]
mov rax, qword [r14 + 0x10]
cmp rax, 0xffffffffffffffff
je 0x1400060b8
xor r8d, r8d
lea rdx, [rbp + 0xb]
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x14000608a
cmp dword [rbp + 0xb], 0
jbe 0x14000608a
mov edx, 5
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov dword [rbp + 7], r12d
lea rax, [r14 + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 7]
mov r8d, edi
mov rdx, rbx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400060b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.moved
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008b90
lea rdx, [0x140009100]
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 + 0x27]
cmp rdx, 0xf
jbe 0x14000611a
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006115
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006115
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014570
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140014550
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret