Function at 0x140042450
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
xor edi, edi
lea r9, [rbp - 0x11]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400468c0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x1400427ce
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov rdx, qword [rbp - 0x11]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x1400424b2
lea rcx, [rbp - 0x31]
call fcn.140040010
nop
mov r8d, 1
lea rdx, [0x14004d584]
lea rcx, [rbp - 0x31]
call fcn.14003f610
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x51], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x41], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140042517
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.14003f610
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x17], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rbp - 0x39]
cmp rdx, 7
jbe 0x140042593
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004258e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004258e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004382c
movdqa xmm0, xmmword [0x14004d770]
movdqu xmmword [rbp - 0x41], xmm0
mov word [rbp - 0x51], di
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x1400425e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400425e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400425e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004382c
movdqa xmm0, xmmword [0x14004d770]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], di
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rdx, qword [rbp + 7]
xorps xmm0, xmm0
movups xmmword [rbp - 0x71], xmm0
mov qword [rbp - 0x61], rdi
mov qword [rbp - 0x59], rdi
mov r8, qword [rbp + 0x17]
lea rcx, [rbp - 0x71]
call fcn.140040010
nop
lea rcx, [rbp - 0x71]
cmp qword [rbp - 0x59], 7
cmova rcx, qword [rbp - 0x71]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0x27]
call fcn.1400446f8
mov r8d, eax
test eax, eax
jne 0x140042695
mov edx, dword [rbp + 0x37]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rbp - 5], ecx
bt edx, 0xa
jae 0x140042687
mov eax, dword [rbp + 0x3b]
cmp eax, 0xa000000c
jne 0x140042679
lea eax, [r8 + 4]
jmp 0x1400426b7
cmp eax, 0xa0000003
jne 0x140042687
mov eax, 0xa
jmp 0x1400426b7
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x1400426b7
mov dword [rbp - 5], 0xffff
sub eax, 2
je 0x1400426b2
sub eax, 1
je 0x1400426b2
sub eax, 0x32
je 0x1400426b2
cmp eax, 0x46
mov eax, edi
jne 0x1400426b7
mov eax, 1
mov dword [rbp - 9], r8d
lea rcx, [0x1400570f0]
mov qword [rbp - 1], rcx
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
test eax, eax
je 0x140042717
cmp eax, 1
sete bl
mov rdx, qword [rbp - 0x59]
cmp rdx, 7
jbe 0x140042729
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042724
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042724
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test r8d, r8d
jne 0x1400427f1
jmp 0x1400426d9
call fcn.14004382c
test bl, bl
je 0x14004274d
mov r8d, 0x10
lea rdx, str.Folder_not_found
call fcn.14003abd0
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor bl, bl
jmp 0x140042786
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova r8, qword [rbp + 7]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, [0x14004d588]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov bl, 1
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x1400427c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400427c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400427c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004382c
movzx eax, bl
jmp 0x1400427d0
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140043690
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea r8, [rbp - 0x71]
lea rdx, [rbp - 9]
lea rcx, str.exists
call fcn.14003c040
int3