Function at 0x140177950
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 [0x140418a10]
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.1401ff260
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.1402bd21c
lea edx, [rdi + 9]
lea rcx, [rsp + 0x20]
call fcn.140200570
nop
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140177a10
mov qword [rsp + 0x48], rdi
test ebx, ebx
jne 0x140177a31
lea rax, [0x140348ca0]
mov qword [rsp + 0x40], rax
jmp 0x140177a57
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x48], 0
jle 0x140177a8b
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x28], 0
jle 0x140177a9c
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140208850
mov rsi, qword [rsp + 0x60]
test al, al
je 0x140177bc4
mov eax, dword [rsp + 0x58]
cmp eax, 0x2000
jle 0x140177bd4
mov ebx, edi
lea edx, [rax - 0x2000]
test edx, edx
jle 0x140177b9c
mov rax, qword [0x14041c4a8]
nop
mov ecx, ebx
cmp byte [rcx + rsi + 0x1fe], 0x55
jne 0x140177afc
cmp byte [rcx + rsi + 0x1ff], 0xaa
jne 0x140177afc
cmp rax, qword [rcx + rsi]
je 0x140177b08
inc ebx
cmp ebx, edx
jge 0x140177b9c
jmp 0x140177ae0
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 0x140177b54
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.1401501b0
test r14, r14
je 0x140177b74
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 0x140177b98
lea eax, [rdx + rbx]
cmp dword [rsp + 0x58], eax
jl 0x140177b98
mov r8, rdx
movsxd rdx, ebx
add rdx, rsi
mov rcx, qword [r15 + 0x10]
call fcn.1402b9d30
mov bl, 1
jmp 0x140177bd6
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.1401501b0
jmp 0x140177bd4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, r15
call fcn.1400d2ad0
xor bl, bl
cmp dword [rsp + 0x78], 0
jle 0x140177be8
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
nop
test rsi, rsi
je 0x140177bfd
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.1402b9610
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret