Function at 0x14004e380
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb60
mov rax, qword [0x140079ca0]
xor rax, rsp
mov qword [rsp + 0xb50], rax
xor eax, eax
mov word [rsp + 0x8d0], ax
lea rdi, [rsp + 0x8d2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x60], ax
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x4a0], ax
lea rdi, [rsp + 0x4a2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x270], ax
lea rdi, [rsp + 0x272]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x6c0], ax
lea rdi, [rsp + 0x6c2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x6b0], 0
mov qword [rsp + 0x40], 0x104
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xb78]
call fcn.14002fc08
lea rdx, [rsp + 0x6c0]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x8d0]
call fcn.140005dc0
xor edx, edx
mov word [rsp + 0x60], dx
xor r9d, r9d
mov r8d, 0x25
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
je 0x14004e4d1
xor eax, eax
jmp 0x14004e688
lea rdx, [rsp + 0x4a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x50], eax
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xae0]
call fcn.140030610
mov dword [rsp + 0xae0], 0x68
mov eax, dword [rsp + 0xb1c]
or eax, 1
mov dword [rsp + 0xb1c], eax
xor eax, eax
mov word [rsp + 0xb20], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x480]
call fcn.140030610
lea rdx, str.PNPUTIL.EXE
lea rcx, [rsp + 0x270]
call fcn.140004cf0
cmp dword [rsp + 0xb80], 0
je 0x14004e56a
lea rdx, [0x1400650a8]
lea rcx, [rsp + 0x270]
call fcn.140004d20
lea rdx, [0x1400650b0]
lea rcx, [rsp + 0x270]
call fcn.140004d20
lea rdx, [rsp + 0x8d0]
lea rcx, [rsp + 0x270]
call fcn.140004d20
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0x6b0], eax
lea rax, [rsp + 0x480]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xae0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000230
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x6b0], eax
cmp dword [rsp + 0x6b0], 0
jne 0x14004e621
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0x6b0], eax
xor eax, eax
jmp 0x14004e688
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x488]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0x6b0], eax
cmp dword [rsp + 0x50], 0
je 0x14004e683
xor eax, eax
jmp 0x14004e688
mov eax, 1
mov rcx, qword [rsp + 0xb50]
xor rcx, rsp
call fcn.14002f9d0
add rsp, 0xb60
pop rdi
ret