Function at 0x1401655d0
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 [0x140418a10]
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 0x140165640
mov qword [rsp + 0x38], r15
lea r12, [0x140348ca0]
test edi, edi
jne 0x140165661
mov qword [rsp + 0x30], r12
jmp 0x140165687
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, edi
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
movzx eax, byte [0x14042c16a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400e97f0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401656c4
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
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 0x1401656e0
mov qword [rsp + 0x38], r15
test ebx, ebx
jne 0x1401656fa
mov qword [rsp + 0x30], r12
jmp 0x140165720
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
movzx eax, byte [0x14042c16a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400e97f0
nop
cmp dword [rsp + 0x38], 0
jle 0x14016575d
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1401659ac
nop
mov qword [rsp + 0x38], r15
mov edx, 0xa
lea rcx, [rsp + 0x30]
call fcn.1401ff260
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.1402bd21c
mov edx, 0xa
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea rdx, [rbx + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401657d8
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140165a50
test al, al
je 0x14016592c
mov r8b, 1
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.1400f92f0
mov rdi, rax
xorps xmm2, xmm2
mov edx, 9
mov rcx, rax
call fcn.1400e40c0
mov qword [rsp + 0x58], r15
mov edx, 0xd
lea rcx, [rsp + 0x50]
call fcn.1401ff260
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.1402bd21c
mov edx, 0xd
lea rcx, [rsp + 0x50]
call fcn.140200570
nop
lea r8, [rsp + 0x50]
mov edx, 2
mov rcx, rdi
call fcn.1400d9700
nop
cmp dword [rsp + 0x58], 0
jle 0x140165882
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
mov rax, qword [rdi]
mov rdx, r14
mov rcx, rdi
call qword [rax + 0x70]
cmp dword [rsp + 0x7c], 0
jle 0x14016592c
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400f92f0
mov rsi, rax
mov qword [rsp + 0x68], r15
mov edx, 0xf
lea rcx, [rsp + 0x60]
call fcn.1401ff260
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.1402bd21c
mov edx, 0xf
lea rcx, [rsp + 0x60]
call fcn.140200570
nop
lea r8, [rsp + 0x60]
mov edx, 2
mov rcx, rsi
call fcn.1400d9700
nop
cmp dword [rsp + 0x68], 0
jle 0x140165914
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
mov rax, qword [rsi]
mov rdx, r14
mov rcx, rsi
call qword [rax + 0x70]
mov rdx, rsi
mov rcx, rdi
call fcn.140165460
nop
cmp dword [rsp + 0x78], 0
jle 0x14016593e
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x78], 0
jle 0x14016594d
mov rcx, qword [rbp - 0x80]
call fcn.1402b9c20
cmp byte [rbx + 0x19], 0
jne 0x14016599e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14016597e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14016599e
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140165970
jmp 0x14016599e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14016599b
cmp rbx, qword [rax + 0x10]
jne 0x14016599b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140165988
mov rbx, rax
mov rax, qword [rsp + 0x40]
cmp rbx, rax
jne 0x140165770
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x1401659f6
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 0x1401659e0
mov rcx, qword [rdi + 0x20]
call fcn.1402b9c20
mov rcx, rdi
call fcn.1402177e0
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401659c0
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.1402177e0
mov al, 1
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1402b9610
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