Function at 0x140176580
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 [0x140415a10]
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.1401fcb40
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.1402ba94c
lea edx, [rdi + 9]
lea rcx, [rsp + 0x20]
call fcn.1401fde50
nop
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140176640
mov qword [rsp + 0x48], rdi
test ebx, ebx
jne 0x140176661
lea rax, [0x140346ce0]
mov qword [rsp + 0x40], rax
jmp 0x140176687
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x48], 0
jle 0x1401766bb
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
nop
cmp dword [rsp + 0x28], 0
jle 0x1401766cc
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140206130
mov rsi, qword [rsp + 0x60]
test al, al
je 0x1401767f4
mov eax, dword [rsp + 0x58]
cmp eax, 0x2000
jle 0x140176804
mov ebx, edi
lea edx, [rax - 0x2000]
test edx, edx
jle 0x1401767cc
mov rax, qword [0x1404194a8]
nop
mov ecx, ebx
cmp byte [rcx + rsi + 0x1fe], 0x55
jne 0x14017672c
cmp byte [rcx + rsi + 0x1ff], 0xaa
jne 0x14017672c
cmp rax, qword [rcx + rsi]
je 0x140176738
inc ebx
cmp ebx, edx
jge 0x1401767cc
jmp 0x140176710
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 0x140176784
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.14014ef10
test r14, r14
je 0x1401767a4
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 0x1401767c8
lea eax, [rdx + rbx]
cmp dword [rsp + 0x58], eax
jl 0x1401767c8
mov r8, rdx
movsxd rdx, ebx
add rdx, rsi
mov rcx, qword [r15 + 0x10]
call fcn.1402b7460
mov bl, 1
jmp 0x140176806
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.14014ef10
jmp 0x140176804
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, r15
call fcn.1400d2aa0
xor bl, bl
cmp dword [rsp + 0x78], 0
jle 0x140176818
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
nop
test rsi, rsi
je 0x14017682d
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.1402b6d40
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret