Function at 0x1400040b0
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 [0x140056040]
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 0x14000442e
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 0x140004112
lea rcx, [rbp - 0x31]
call fcn.1400078a0
nop
mov r8d, 1
lea rdx, [0x140046ce4]
lea rcx, [rbp - 0x31]
call fcn.140006470
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 0x140004177
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.140006470
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 0x1400041f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400041ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400041ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043c04
movdqa xmm0, xmmword [0x14004d730]
movdqu xmmword [rbp - 0x41], xmm0
mov word [rbp - 0x51], di
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x140004247
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004242
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004242
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043c04
movdqa xmm0, xmmword [0x14004d730]
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.1400078a0
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.140043358
mov r8d, eax
test eax, eax
jne 0x1400042f5
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 0x1400042e7
mov eax, dword [rbp + 0x3b]
cmp eax, 0xa000000c
jne 0x1400042d9
lea eax, [r8 + 4]
jmp 0x140004317
cmp eax, 0xa0000003
jne 0x1400042e7
mov eax, 0xa
jmp 0x140004317
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x140004317
mov dword [rbp - 5], 0xffff
sub eax, 2
je 0x140004312
sub eax, 1
je 0x140004312
sub eax, 0x32
je 0x140004312
cmp eax, 0x46
mov eax, edi
jne 0x140004317
mov eax, 1
mov dword [rbp - 9], r8d
lea rcx, [0x1400560c8]
mov qword [rbp - 1], rcx
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
test eax, eax
je 0x140004377
cmp eax, 1
sete bl
mov rdx, qword [rbp - 0x59]
cmp rdx, 7
jbe 0x140004389
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004384
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004384
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 0x140004451
jmp 0x140004339
call fcn.140043c04
test bl, bl
je 0x1400043ad
mov r8d, 0x10
lea rdx, str.Folder_not_found
call fcn.140006cf0
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor bl, bl
jmp 0x1400043e6
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, str.open
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 0x140004429
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004424
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004424
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140043c04
movzx eax, bl
jmp 0x140004430
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140043960
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.140002780
int3