Function at 0x140001830
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x32d0]
mov eax, 0x33d0
call fcn.1400279c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x32c0], rax
mov ebx, edx
lea rcx, [rbp + 0x3f0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.cmd.exe
mov edx, 0x104
lea rcx, [rbp + 0x3f0]
call fcn.140017cd0
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._sc.exe
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.140017cd0
lea rax, [rbp + 0x1e0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x26
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [0x140033d28]
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call fcn.140017cd0
lea r8, [0x140033d50]
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call fcn.140017cd0
mov edx, 0x104
lea rcx, [rbp + 0x600]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140033d68]
mov edx, 0x104
lea rcx, [rbp + 0x600]
call fcn.140017cd0
mov edx, 0x104
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._taskkill.exe
mov edx, 0x104
lea rcx, [rbp + 0x810]
call fcn.140017cd0
lea rcx, str.start
cmp ebx, 3
lea rax, str.query
mov edx, 0xa28
cmove rax, rcx
lea r9, [rbp - 0x30]
mov qword [rsp + 0x40], rax
lea r8, str._c____s__create_ep_dwm_D17F1E1A_5919_4427_8F89_A1A8503CA3EB_binPath____s___s__DisplayName__ExplorerPatcher_Desktop_Window_Manager_Service__start_auto____s__description_ep_dwm_D17F1E1A_5919_4427_8F89_A1A8503CA3EB__Service_for_managing_aspects_related_to_the_Desktop_Window_Manager._____s___s_ep_dwm_D17F1E1A_5919_4427_8F89_A1A8503CA3EB_
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0xa20]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, str.ep_dwm_D17F1E1A_5919_4427_8F89_A1A8503CA3EB_Globalep_dwm_2_D17F1E1A_5919_4427_8F89_A1A8503CA3EB
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
call fcn.140001070
lea rax, [rbp - 0x30]
mov edx, 0xa28
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r8, str._c____s__stop_ep_dwm_D17F1E1A_5919_4427_8F89_A1A8503CA3EB____s__delete_ep_dwm_D17F1E1A_5919_4427_8F89_A1A8503CA3EB___
lea rcx, [rbp + 0x1e70]
call fcn.140001070
lea rdx, [rbp + 0xa20]
lea rcx, [0x140034230]
call fcn.140001010
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x50], 0x70
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
xor edi, edi
mov dword [rsp + 0x54], 0x40
lea rax, str.runas
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rax
lea rcx, [rbp + 0x1e70]
lea rax, [rbp + 0x3f0]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x68], rax
cmp ebx, 1
lea rax, [rbp + 0xa20]
mov dword [rbp - 0x80], edi
cmove rax, rcx
mov qword [rbp - 0x78], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x70], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140001aa1
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140001aa1
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x32c0]
xor rcx, rsp
call fcn.140009350
lea r11, [rsp + 0x33d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret