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

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [0x18004d858]
test rcx, rcx
je 0x18001151b
cmp dword [rbx + 0x24], 0
jne 0x18001151b
mov rax, qword [rbx + 0x18]
mov r8, qword [rbx]
xor r9d, r9d
mov qword [r11 - 0x18], rax
mov rax, qword [rbx + 0x10]
xor edx, edx
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
and qword [r11 - 0x30], 0
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x18001156a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180011501
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], 0
je 0x180011501
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x180011828
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x29
mov rdx, qword [rbx]
mov r8d, eax
call fcn.18000e680
xor eax, eax
jmp 0x18001156f
mov rax, qword [rbx + 0x18]
mov rdx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x10]
xor r8d, r8d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
mov eax, dword [rbx + 0x20]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x18001156a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, gethostbyname
jmp 0x18001150c
mov eax, 1
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1050
call fcn.180021380
sub rsp, rax
mov rdi, rcx
mov ebx, 0x7fe
lea rcx, [rsp + 0x52]
xor ebp, ebp
xor edx, edx
mov r8d, ebx
mov word [rsp + 0x50], bp
call fcn.18001fa30
lea rcx, [rsp + 0x852]
mov r8d, ebx
xor edx, edx
mov word [rsp + 0x850], bp
call fcn.18001fa30
mov rax, qword [rdi + 0x10]
mov ebx, 0x400
mov qword [rax + 0x10], rbp
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
mov r8d, ebx
mov esi, ebp
call fcn.180010394
test eax, eax
jne 0x1800118b0
mov edx, dword [rdi + 8]
lea ecx, [rbp + 7]
call fcn.18000e594
jmp 0x18001199a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x1800118d6
lea rdx, [rsp + 0x850]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rsi, [rsp + 0x850]
call fcn.18001e608
mov rax, qword [rdi + 0x18]
mov rcx, qword [0x18004d858]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x10]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0x20]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x50]
lea edx, [r8 + 2]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov ebx, eax
call fcn.18001e5ec
test ebx, ebx
je 0x180011929
mov eax, 1
jmp 0x18001199c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x18001195a
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], rbp
je 0x18001195a
cmp dword [0x18004d880], 1
jne 0x18001195a
lea rdx, [rsp + 0x50]
mov r8, rsi
mov rcx, rdi
call fcn.1800117a8
jmp 0x18001199c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x180011984
mov rax, qword [rdi + 0x10]
cmp dword [rax], 0x70
jne 0x180011984
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], rbp
je 0x180011984
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4a
jmp 0x18001198f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x29
mov rdx, qword [rdi]
mov r8d, eax
call fcn.18000e680
xor eax, eax
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret