Function at 0x140179590
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 [0x14041da10]
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.1402028a0
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.1402c06dc
lea edx, [rdi + 9]
lea rcx, [rsp + 0x20]
call fcn.140203bb0
nop
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140179650
mov qword [rsp + 0x48], rdi
test ebx, ebx
jne 0x140179671
lea rax, [0x14034d1a0]
mov qword [rsp + 0x40], rax
jmp 0x140179697
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140203bb0
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400d4050
nop
cmp dword [rsp + 0x48], 0
jle 0x1401796cb
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x28], 0
jle 0x1401796dc
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14020c740
mov rsi, qword [rsp + 0x60]
test al, al
je 0x140179804
mov eax, dword [rsp + 0x58]
cmp eax, 0x2000
jle 0x140179814
mov ebx, edi
lea edx, [rax - 0x2000]
test edx, edx
jle 0x1401797dc
mov rax, qword [0x1404214a8]
nop
mov ecx, ebx
cmp byte [rcx + rsi + 0x1fe], 0x55
jne 0x14017973c
cmp byte [rcx + rsi + 0x1ff], 0xaa
jne 0x14017973c
cmp rax, qword [rcx + rsi]
je 0x140179748
inc ebx
cmp ebx, edx
jge 0x1401797dc
jmp 0x140179720
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 0x140179794
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.140151c00
test r14, r14
je 0x1401797b4
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 0x1401797d8
lea eax, [rdx + rbx]
cmp dword [rsp + 0x58], eax
jl 0x1401797d8
mov r8, rdx
movsxd rdx, ebx
add rdx, rsi
mov rcx, qword [r15 + 0x10]
call fcn.1402bd1f0
mov bl, 1
jmp 0x140179816
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.140151c00
jmp 0x140179814
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, r15
call fcn.1400d3f50
xor bl, bl
cmp dword [rsp + 0x78], 0
jle 0x140179828
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
nop
test rsi, rsi
je 0x14017983d
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.1402bcad0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret