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

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [0x18001b4d0]
test rcx, rcx
je 0x180003fab
cmp dword [rbx + 0x24], 0
jne 0x180003fab
mov rax, qword [rbx + 0x18]
xor edx, edx
mov r8, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 0x20]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x18000400b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180003f8d
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], 0
je 0x180003f8d
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x180004300
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x29
mov r8d, eax
call fcn.180001d60
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov rax, qword [rbx + 0x18]
xor edx, edx
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rax, qword [rbx + 0x10]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov eax, dword [rbx + 0x20]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbx]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x18000400b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x30
mov r8d, eax
call fcn.180001d60
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov eax, 1
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.18000fe80
sub rsp, rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call fcn.18000fc98
xor edx, edx
lea rcx, [rsp + 0x850]
mov r8d, 0x800
call fcn.18000fc98
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x50]
xor edi, edi
mov r8d, 0x400
mov qword [rax + 0x10], rdi
mov rcx, qword [rbx]
call fcn.1800035f0
test eax, eax
jne 0x18000437c
mov edx, dword [rbx + 8]
lea ecx, [rdi + 7]
call fcn.180001c60
xor eax, eax
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x400
jae 0x1800043a8
lea rdx, [rsp + 0x850]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdi, [rsp + 0x850]
mov rax, qword [rbx + 0x18]
lea r9, [rsp + 0x50]
mov rcx, qword [0x18001b4d0]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x20]
lea edx, [r8 + 2]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x180004402
mov eax, 1
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180004443
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x180004443
cmp dword [0x18001b4f8], 1
jne 0x180004443
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180004270
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x18000446e
mov rax, qword [rbx + 0x10]
cmp dword [rax], 0x70
jne 0x18000446e
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x18000446e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4a
jmp 0x180004479
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x29
mov rdx, qword [rbx]
mov r8d, eax
call fcn.180001d60
mov rbx, qword [rsp + 0x1060]
xor eax, eax
add rsp, 0x1050
pop rdi
ret