Function at 0x140002d10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1160
call fcn.14003a7c0
sub rsp, rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x960]
mov r8d, 0x800
call fcn.140022720
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x800
call fcn.140022720
mov rax, qword [rsi + 0x10]
xor edi, edi
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x28], edi
mov r9d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
mov qword [rax + 0x10], rdi
mov rbp, qword [rsi]
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 0x3ff
ja 0x1400030a9
lea rax, [rsp + 0x960]
mov dword [rsp + 0x28], 0x400
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x400
jae 0x140002ddb
lea rdx, [rsp + 0x160]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rsi + 0x18]
lea r9, [rsp + 0x960]
mov rcx, qword [0x140058f88]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x30], rax
lea edx, [r8 + 2]
mov eax, dword [rsi + 0x20]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x140002e30
mov eax, 1
jmp 0x1400030c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140002fbd
cmp dword [0x14005c330], 1
jne 0x140002fbd
mov rax, qword [rsi + 0x18]
mov r9d, 2
mov r8, qword [0x14005c320]
mov rdx, qword [0x14005b248]
mov rcx, qword [0x14005c310]
mov qword [rsp + 0x50], rax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x40], rax
mov eax, dword [rsi + 0x20]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x960]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x140002ebc
mov edi, 1
mov eax, edi
jmp 0x1400030c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140002ee5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsi]
xor r8d, r8d
mov edx, eax
lea ecx, [r8 + 0x45]
call fcn.140009c20
mov eax, edi
jmp 0x1400030c2
mov rcx, qword [rsi]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x140002ef0
cmp rax, 0x100
jae 0x140002ec7
lea rdx, str.sysnative
mov qword [rsp + 0x1170], r14
call fcn.140021f68
mov r14, rax
test rax, rax
je 0x140002f97
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x100
call fcn.140022720
movabs rax, 0x32336d6574737973
mov qword [r14], rax
add r14, 9
inc rbx
cmp byte [r14 + rbx], dil
jne 0x140002f40
mov r8, rbx
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.140022ae0
lea rax, [rsp + 0x60]
sub r14, rax
lea rcx, [rsp + 0x60]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r14 + rcx - 1], al
lea rcx, [rcx + 1]
test al, al
jne 0x140002f70
mov rcx, rsi
call fcn.140002d10
mov r14, qword [rsp + 0x1170]
mov edi, eax
jmp 0x1400030c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsi]
xor r8d, r8d
mov edx, eax
lea ecx, [r8 + 0x45]
call fcn.140009c20
mov r14, qword [rsp + 0x1170]
mov eax, edi
jmp 0x1400030c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140002fe4
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0x48
jne 0x140002fe4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsi]
mov ebx, 0x4a
jmp 0x1400030b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x140003099
mov rcx, qword [rsi]
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x140003000
cmp rax, 0x100
jae 0x140003099
lea rdx, str.sysnative
call fcn.140021f68
mov rdi, rax
test rax, rax
je 0x140003099
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x100
call fcn.140022720
movabs rax, 0x32336d6574737973
mov qword [rdi], rax
add rdi, 9
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140003050
mov r8, rbx
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140022ae0
lea rax, [rsp + 0x60]
sub rdi, rax
lea rcx, [rsp + 0x60]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdi + rcx - 1], al
lea rcx, [rcx + 1]
test al, al
jne 0x140003080
mov rcx, rsi
call fcn.140002d10
jmp 0x1400030c2
mov rdi, qword [rsi]
mov ebx, 0x29
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400030b1
mov eax, dword [rsi + 8]
mov ebx, 7
mov r9, rdi
xor r8d, r8d
mov edx, eax
mov ecx, ebx
call fcn.140009c20
xor eax, eax
lea r11, [rsp + 0x1160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret