Function at 0x14000f9fc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
mov rax, qword gs:[0x30]
mov r13, r9
mov r14d, r8d
mov r12, rdx
mov rcx, qword [rax + 0x60]
mov rsi, qword [rcx + 0x30]
cmp r8d, 0x104
ja 0x14000fb00
xor eax, eax
lea rdi, [rsp + 0x60]
lea r8, [rsp + 0x60]
xor edx, edx
lea r9d, [rax + 0x40]
mov ecx, r9d
rep stosb byte [rdi], al
xor edi, edi
mov qword [rsp + 0x60], r9
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14000fa84
mov ebx, dword [rbp - 0x68]
shr ebx, 1
and bl, 1
jmp 0x14000fa87
mov bl, dil
mov edx, 0x114
lea rdi, [rbp - 0x60]
mov ecx, edx
xor eax, eax
rep stosb byte [rdi], al
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x60], edx
call qword [sym.imp.ntdll.dll_RtlGetVersion]
mov r15d, dword [rbp - 0x54]
cmp r15d, 0x1db0
jb 0x14000fb00
mov edx, 8
mov r8d, 0xca8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000fb00
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14000fb23
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_RtlSetHeapInformation]
mov dword [rdi + 0xc], 1
lea rcx, [rbp + 0x100]
mov dword [rdi + 8], r15d
mov eax, dword [0x7ffe0330]
mov dword [rbp + 0x100], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov byte [rdi], bl
xor ebx, ebx
mov dword [rdi + 4], eax
test r14d, r14d
je 0x14000fb82
mov r9, r14
lea rcx, [rdi + 0x890]
mov r8, r12
mov edx, 0x104
call fcn.140001b38
mov dword [rdi + 0x14], r14d
mov eax, 0x10800010
mov ecx, 0x10840014
cmp r15d, 0x3a95
cmovbe eax, ecx
mov rcx, rdi
mov dword [rdi + 0x10], eax
call fcn.14000f30c
test eax, eax
jne 0x14000fbb4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ntdll.dll_RtlDestroyHeap]
jmp 0x14000faf2
lea rdx, str._temp__
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rdi + 0x47c]
mov dword [rsp + 0x38], 0x2080000
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlExpandEnvironmentStrings_U]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14000fc18
cmp eax, 0xc0000023
je 0x14000fc18
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rbx, [rdi + 0x686]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jae 0x14000fc3c
mov rcx, rbx
call fcn.140010680
lea rcx, [rdi + 0xa9a]
lea rdx, [rdi + 0x272]
call fcn.140001af8
lea rdx, [0x140036af8]
call fcn.140001abc
mov rcx, r13
call fcn.14000deac
or qword [rdi + 0x28], 0xffffffffffffffff
mov qword [rdi + 0x20], rax
mov rax, rdi
jmp 0x14000fb02