Function at 0x140164340
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 [0x140415a10]
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 0x1401643b0
mov qword [rsp + 0x38], r15
lea r12, [0x140346ce0]
test edi, edi
jne 0x1401643d1
mov qword [rsp + 0x30], r12
jmp 0x1401643f7
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
movzx eax, byte [0x14042918a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400e8550
nop
cmp dword [rsp + 0x38], 0
jle 0x140164434
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
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 0x140164450
mov qword [rsp + 0x38], r15
test ebx, ebx
jne 0x14016446a
mov qword [rsp + 0x30], r12
jmp 0x140164490
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
movzx eax, byte [0x14042918a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400e8550
nop
cmp dword [rsp + 0x38], 0
jle 0x1401644cd
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14016471c
nop
mov qword [rsp + 0x38], r15
mov edx, 0xa
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
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.1402ba94c
mov edx, 0xa
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea rdx, [rbx + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x38], 0
jle 0x140164548
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1401647c0
test al, al
je 0x14016469c
mov r8b, 1
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.1400f8340
mov rdi, rax
xorps xmm2, xmm2
mov edx, 9
mov rcx, rax
call fcn.1400e4050
mov qword [rsp + 0x58], r15
mov edx, 0xd
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
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.1402ba94c
mov edx, 0xd
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea r8, [rsp + 0x50]
mov edx, 2
mov rcx, rdi
call fcn.1400d9690
nop
cmp dword [rsp + 0x58], 0
jle 0x1401645f2
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
mov rax, qword [rdi]
mov rdx, r14
mov rcx, rdi
call qword [rax + 0x70]
cmp dword [rsp + 0x7c], 0
jle 0x14016469c
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400f8340
mov rsi, rax
mov qword [rsp + 0x68], r15
mov edx, 0xf
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
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.1402ba94c
mov edx, 0xf
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
lea r8, [rsp + 0x60]
mov edx, 2
mov rcx, rsi
call fcn.1400d9690
nop
cmp dword [rsp + 0x68], 0
jle 0x140164684
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
mov rax, qword [rsi]
mov rdx, r14
mov rcx, rsi
call qword [rax + 0x70]
mov rdx, rsi
mov rcx, rdi
call fcn.1401641d0
nop
cmp dword [rsp + 0x78], 0
jle 0x1401646ae
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
nop
cmp dword [rbp - 0x78], 0
jle 0x1401646bd
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
cmp byte [rbx + 0x19], 0
jne 0x14016470e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1401646ee
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14016470e
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401646e0
jmp 0x14016470e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14016470b
cmp rbx, qword [rax + 0x10]
jne 0x14016470b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401646f8
mov rbx, rax
mov rax, qword [rsp + 0x40]
cmp rbx, rax
jne 0x1401644e0
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x140164766
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 0x140164750
mov rcx, qword [rdi + 0x20]
call fcn.1402b7350
mov rcx, rdi
call fcn.1402150f0
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x140164730
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.1402150f0
mov al, 1
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1402b6d40
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