Function at 0x1400104b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x14006a040]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rsi, rdx
movzx r14d, cl
xor r15d, r15d
mov dword [rsp + 0x50], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xd8], eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rdi, [0x140000000]
lea rax, [rdi + 0x5b758]
mov qword [rbp + 0xe0], rax
lea rax, [0x14005bc60]
mov qword [rbp + 0xf0], rax
lea rcx, [rbp + 0x178]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 1
xor r8d, r8d
lea rdx, [rbp + 0xf8]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0xe0], r13
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xdc], edx
lea rcx, [rbp + 0xf8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r12, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0xf8], r12
mov qword [rbp + 0x160], r15
mov dword [rbp + 0x168], r15d
lea rdx, str.defrag
lea rcx, [rbp + 0xf0]
call fcn.140044180
mov rcx, rax
movzx edx, r14b
call fcn.140044390
mov rcx, rax
lea rdx, str.:__U__V
call fcn.140044180
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1e4], xmm0
movups xmmword [rbp + 0x1f4], xmm0
movups xmmword [rbp + 0x204], xmm0
movups xmmword [rbp + 0x214], xmm0
movups xmmword [rbp + 0x224], xmm0
movups xmmword [rbp + 0x234], xmm0
mov dword [rbp + 0x244], eax
mov dword [rbp + 0x1e0], 0x68
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0xf8]
call fcn.1400431f0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400106f6
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400106f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400106f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
mov dword [rbp + 0x80], 0x5c
mov dword [rbp + 0x84], 0x40000000
lea r9, [rbp + 0x80]
mov edx, 0x444
mov r8d, 1
mov rcx, rsi
test ebx, ebx
je 0x1400108ab
mov dword [rbp + 0x94], 0xffff
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [rdi + 0x5bc60]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x68], rax
mov qword [rbp], r15
mov dword [rbp + 8], 4
lea rdx, str.Defragmentation_completed_for_drive
lea rcx, [rbp - 0x70]
call fcn.140044780
mov rcx, rax
movzx edx, r14b
call fcn.140044ce0
mov rcx, rax
lea rdx, [0x14005788c]
call fcn.140044780
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140042b60
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova r9, qword [rsp + 0x58]
xor r8d, r8d
mov edx, 0xc2
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140010887
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010881
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010881
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
jmp 0x140010a28
mov dword [rbp + 0x94], 0xff
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [rdi + 0x5bc60]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 0x13
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x68], rax
mov qword [rbp], r15
mov dword [rbp + 8], 4
lea rdx, str.Failed_to_start_defrag_process_for_drive
lea rcx, [rbp - 0x70]
call fcn.140044780
mov rcx, rax
movzx edx, r14b
call fcn.140044ce0
mov rcx, rax
lea rdx, str.._Error:
call fcn.140044780
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14005788c]
call fcn.140044780
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140042b60
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova r9, qword [rsp + 0x58]
xor r8d, r8d
mov edx, 0xc2
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140010a09
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010a03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010a03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.14003fa70
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xe0], r13
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xdc], edx
mov qword [rbp + 0xf8], r12
lea rcx, [rbp + 0xf8]
call fcn.140043140
lea rcx, [rbp + 0xf8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x178]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14004de30
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x360
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret