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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x140024138]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor r9d, r9d
mov rbp, rdx
lea rax, [rsp + 0x100]
mov rsi, rcx
lea edx, [r9 + 0x2c]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
js 0x1400134e1
lea r8, [0x1400030d0]
lea rcx, [rsp + 0x100]
mov edx, 0x105
call fcn.140013b58
mov ebx, eax
test eax, eax
js 0x1400134e1
xor eax, eax
lea rcx, [rsp + 0x90]
xor edx, edx
lea ebx, [rax + 0x68]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov r8, rbx
mov qword [rsp + 0x80], rax
call sub.msvcrt.dll_memset
mov dword [rsp + 0x90], ebx
mov dword [rsp + 0xcc], 0x80
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcessId]
lea r9, [0x140001b38]
lea r8, [0x140003118]
lea rcx, [rsp + 0x310]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140013ae8
and qword [rsp + 0x68], 0
mov ebx, eax
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentThread]
mov edi, 0x80000000
lea r9, [rsp + 0x68]
mov r8d, 1
mov rcx, rax
mov edx, edi
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_OpenThreadToken]
test eax, eax
jne 0x14001337c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140013467
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, edi
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_OpenProcessToken]
mov rdi, qword [rsp + 0x68]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
test rdi, rdi
je 0x1400133bc
lea rax, [rsp + 0x60]
lea r9d, [rcx + 2]
lea edx, [rcx + 0xb]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 1
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x1400133c1
mov ebx, 0x80004005
test ebx, ebx
js 0x1400134c3
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x310]
lea rdx, [rsp + 0x100]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400134be
mov rcx, qword [rsp + 0x70]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
cmp eax, 0x102
jne 0x1400134a8
mov edx, 0x64
call qword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
je 0x140013480
test rbp, rbp
je 0x140013458
mov eax, dword [rsp + 0x84]
mov dword [rbp], eax
test rsi, rsi
je 0x140013473
mov rax, qword [rsp + 0x70]
mov qword [rsi], rax
jmp 0x1400134b3
xor edi, edi
mov qword [rsp + 0x68], rdi
jmp 0x140013381
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400134b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x70]
and dword [rsp + 0x88], 0
lea rdx, [rsp + 0x88]
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetExitCodeProcess]
mov ebx, 0x80004005
jmp 0x1400134b3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rdi, rdi
je 0x1400134d6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400134e1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.14001b920
mov rbx, qword [rsp + 0x560]
add rsp, 0x530
pop rdi
pop rsi
pop rbp
ret