Function at 0x140167020
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
call fcn.14000a340
mov qword [rsp + 0x40], rax
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rbp - 0x60]
or rbx, 0xffffffffffffffff
mov rdi, rbx
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140167090
mov qword [rsp + 0x38], r15
lea r12, [0x14034d1a0]
test edi, edi
jne 0x1401670b1
mov qword [rsp + 0x30], r12
jmp 0x1401670d7
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1402028a0
movsxd r9, edi
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1402c06dc
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140203bb0
nop
movzx eax, byte [0x14043124a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400eac70
nop
cmp dword [rsp + 0x38], 0
jle 0x140167114
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea rax, [rbp - 0x60]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140167130
mov qword [rsp + 0x38], r15
test ebx, ebx
jne 0x14016714a
mov qword [rsp + 0x30], r12
jmp 0x140167170
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140203bb0
nop
movzx eax, byte [0x14043124a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400eac70
nop
cmp dword [rsp + 0x38], 0
jle 0x1401671ad
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1401673fc
nop
mov qword [rsp + 0x38], r15
mov edx, 0xa
lea rcx, [rsp + 0x30]
call fcn.1402028a0
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, str.dnsapi.dll
mov rcx, qword [rsp + 0x30]
call fcn.1402c06dc
mov edx, 0xa
lea rcx, [rsp + 0x30]
call fcn.140203bb0
nop
lea rdx, [rbx + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.1400d4050
nop
cmp dword [rsp + 0x38], 0
jle 0x140167228
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1401674a0
test al, al
je 0x14016737c
mov r8b, 1
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.1400fa8d0
mov rdi, rax
xorps xmm2, xmm2
mov edx, 9
mov rcx, rax
call fcn.1400e5540
mov qword [rsp + 0x58], r15
mov edx, 0xd
lea rcx, [rsp + 0x50]
call fcn.1402028a0
mov ecx, dword [rsp + 0x58]
inc ecx
movsxd rdx, ecx
mov r9d, 0xd
lea r8, str.Win32_Patched
mov rcx, qword [rsp + 0x50]
call fcn.1402c06dc
mov edx, 0xd
lea rcx, [rsp + 0x50]
call fcn.140203bb0
nop
lea r8, [rsp + 0x50]
mov edx, 2
mov rcx, rdi
call fcn.1400dab80
nop
cmp dword [rsp + 0x58], 0
jle 0x1401672d2
mov rcx, qword [rsp + 0x50]
call fcn.1402bd0e0
mov rax, qword [rdi]
mov rdx, r14
mov rcx, rdi
call qword [rax + 0x70]
cmp dword [rsp + 0x7c], 0
jle 0x14016737c
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400fa8d0
mov rsi, rax
mov qword [rsp + 0x68], r15
mov edx, 0xf
lea rcx, [rsp + 0x60]
call fcn.1402028a0
mov ecx, dword [rsp + 0x68]
inc ecx
movsxd rdx, ecx
mov r9d, 0xf
lea r8, str.Win32_FakeHosts
mov rcx, qword [rsp + 0x60]
call fcn.1402c06dc
mov edx, 0xf
lea rcx, [rsp + 0x60]
call fcn.140203bb0
nop
lea r8, [rsp + 0x60]
mov edx, 2
mov rcx, rsi
call fcn.1400dab80
nop
cmp dword [rsp + 0x68], 0
jle 0x140167364
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
mov rax, qword [rsi]
mov rdx, r14
mov rcx, rsi
call qword [rax + 0x70]
mov rdx, rsi
mov rcx, rdi
call fcn.140166eb0
nop
cmp dword [rsp + 0x78], 0
jle 0x14016738e
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x78], 0
jle 0x14016739d
mov rcx, qword [rbp - 0x80]
call fcn.1402bd0e0
cmp byte [rbx + 0x19], 0
jne 0x1401673ee
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1401673ce
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1401673ee
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401673c0
jmp 0x1401673ee
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401673eb
cmp rbx, qword [rax + 0x10]
jne 0x1401673eb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401673d8
mov rbx, rax
mov rax, qword [rsp + 0x40]
cmp rbx, rax
jne 0x1401671c0
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x140167446
nop dword [rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000a240
mov rbx, qword [rbx]
cmp dword [rdi + 0x28], 0
jle 0x140167430
mov rcx, qword [rdi + 0x20]
call fcn.1402bd0e0
mov rcx, rdi
call fcn.14021ae20
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x140167410
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [rax], rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x48], r15
mov rcx, qword [rsp + 0x40]
call fcn.14021ae20
mov al, 1
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret