Function at 0x140040f80
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 0x1400412fe
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 0x140040fe2
lea rcx, [rbp - 0x31]
call fcn.14003dd80
nop
mov r8d, 1
lea rdx, [0x14004d464]
lea rcx, [rbp - 0x31]
call fcn.140042580
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 0x140041047
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.140042580
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 0x1400410c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400410be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400410be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004382c
movdqa xmm0, xmmword [0x14004d760]
movdqu xmmword [rbp - 0x41], xmm0
mov word [rbp - 0x51], di
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x140041117
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041112
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041112
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004382c
movdqa xmm0, xmmword [0x14004d760]
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.14003dd80
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 0x1400411c5
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 0x1400411b7
mov eax, dword [rbp + 0x3b]
cmp eax, 0xa000000c
jne 0x1400411a9
lea eax, [r8 + 4]
jmp 0x1400411e7
cmp eax, 0xa0000003
jne 0x1400411b7
mov eax, 0xa
jmp 0x1400411e7
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x1400411e7
mov dword [rbp - 5], 0xffff
sub eax, 2
je 0x1400411e2
sub eax, 1
je 0x1400411e2
sub eax, 0x32
je 0x1400411e2
cmp eax, 0x46
mov eax, edi
jne 0x1400411e7
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 0x140041247
cmp eax, 1
sete bl
mov rdx, qword [rbp - 0x59]
cmp rdx, 7
jbe 0x140041259
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041254
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041254
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 0x140041321
jmp 0x140041209
call fcn.14004382c
test bl, bl
je 0x14004127d
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 0x1400412b6
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, [0x14004d468]
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 0x1400412f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400412f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400412f4
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 0x140041300
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.14003f6f0
int3