Function at 0x140086700
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x1401d60c0]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x60]
call fcn.140062ae0
nop
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp + 0x120]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x120]
call fcn.140062ae0
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2a0]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rbp + 0x2a0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400867b5
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp - 0x80]
call fcn.14005af40
nop
cmp byte [rdi], 0
je 0x14008680b
lea r8, str.System32_ntdll.dll
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140066c90
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140062ca0
nop
lea rcx, [rsp + 0x60]
call fcn.14005a690
jmp 0x1400868aa
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movzx eax, byte [rdi + 1]
mov qword [rsp + 0x60], 0
mov byte [rsp + 0x68], al
test al, al
je 0x140086834
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop
lea r8, str.System32_ntdll.dll
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140066c90
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.140062ca0
nop
lea rcx, [rsp + 0x40]
call fcn.14005a690
lea r8, str.SysWOW64_ntdll.dll
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140066c90
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140062ca0
nop
lea rcx, [rsp + 0x40]
call fcn.14005a690
nop
cmp byte [rsp + 0x68], 0
je 0x1400868aa
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140086a30
nop
lea rcx, [rbx + 0x180]
lea rdx, [rbp + 0x120]
call fcn.140086a30
nop
lea rcx, [rbp - 0x80]
call fcn.14005a690
nop
xor edx, edx
lea rcx, [rbp + 0x120]
call fcn.140062ee0
lea rcx, [rbp + 0x258]
call fcn.1400846b0
lea rcx, [rbp + 0x238]
call fcn.14005a690
lea rcx, [rbp + 0x218]
call fcn.14005a690
lea rcx, [rbp + 0x1d8]
call fcn.1400568f0
lea rcx, [rbp + 0x198]
call fcn.1400568f0
lea rcx, [rbp + 0x180]
call fcn.140064130
mov rcx, qword [rbp + 0x168]
test rcx, rcx
jle 0x14008693d
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rcx, qword [rbp + 0x130]
test rcx, rcx
jle 0x14008694f
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp + 0x128]
test rcx, rcx
jle 0x140086961
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x120]
test rcx, rcx
jle 0x140086974
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140062ee0
lea rcx, [rbp + 0xd8]
call fcn.1400846b0
lea rcx, [rbp + 0xb8]
call fcn.14005a690
lea rcx, [rbp + 0x98]
call fcn.14005a690
lea rcx, [rbp + 0x58]
call fcn.1400568f0
lea rcx, [rbp + 0x18]
call fcn.1400568f0
lea rcx, [rbp]
call fcn.140064130
mov rcx, qword [rbp - 0x18]
test rcx, rcx
jle 0x1400869cd
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jle 0x1400869dc
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
jle 0x1400869eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jle 0x1400869fa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.1400f4b80
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret