Function at 0x140166f30
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x300], rbx
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r15, rdx
mov r14, rcx
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r12, vtable.Core::ByteArray.0
mov qword [rsp + 0x50], r12
xor edi, edi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x28], rdi
lea edx, [rdi + 9]
lea rcx, [rsp + 0x20]
call fcn.1401e9030
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r9d, [rdi + 9]
lea r8, str.untfs.dll
mov rcx, qword [rsp + 0x20]
call fcn.14029b4d8
lea edx, [rdi + 9]
lea rcx, [rsp + 0x20]
call fcn.1401ea290
nop
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140166ff0
mov qword [rsp + 0x48], rdi
test ebx, ebx
jne 0x140167011
lea rax, [0x140323de0]
mov qword [rsp + 0x40], rax
jmp 0x140167037
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401ea290
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400d1690
nop
cmp dword [rsp + 0x48], 0
jle 0x14016706b
mov rcx, qword [rsp + 0x40]
call fcn.140298600
nop
cmp dword [rsp + 0x28], 0
jle 0x14016707c
mov rcx, qword [rsp + 0x20]
call fcn.140298600
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1401f2430
mov rsi, qword [rsp + 0x60]
test al, al
je 0x1401671a4
mov eax, dword [rsp + 0x58]
cmp eax, 0x2000
jle 0x1401671b4
mov ebx, edi
lea edx, [rax - 0x2000]
test edx, edx
jle 0x14016717c
mov rax, qword [0x1403ee438]
nop
mov ecx, ebx
cmp byte [rcx + rsi + 0x1fe], 0x55
jne 0x1401670dc
cmp byte [rcx + rsi + 0x1ff], 0xaa
jne 0x1401670dc
cmp rax, qword [rcx + rsi]
je 0x1401670e8
inc ebx
cmp ebx, edx
jge 0x14016717c
jmp 0x1401670c0
movsxd r13, dword [r14 + 0x30]
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x28], edi
mov r14, rdi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r12, rax
mov qword [rsp + 0x38], rax
test r13d, r13d
je 0x140167134
mov r8, r13
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
cmovne edi, r13d
mov dword [rsp + 0x28], edi
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.140142d20
test r14, r14
je 0x140167154
mov r8, r14
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
movsxd rdx, dword [r15 + 8]
test rsi, rsi
je 0x140167178
lea eax, [rdx + rbx]
cmp dword [rsp + 0x58], eax
jl 0x140167178
mov r8, rdx
movsxd rdx, ebx
add rdx, rsi
mov rcx, qword [r15 + 0x10]
call fcn.140298710
mov bl, 1
jmp 0x1401671b6
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.140142d20
jmp 0x1401671b4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, r15
call fcn.1400d14a0
xor bl, bl
cmp dword [rsp + 0x78], 0
jle 0x1401671c8
mov rcx, qword [rsp + 0x70]
call fcn.140298600
nop
test rsi, rsi
je 0x1401671dd
mov r8, rsi
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret