Function at 0x14009ad80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x14016f0a8]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rdx
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp - 0x80]
call fcn.1400a6d20
lea rcx, [rbp - 0x80]
call fcn.140077bb0
nop
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp + 0x100]
call fcn.1400a6d20
lea rcx, [rbp + 0x100]
call fcn.140077bb0
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x280]
call fcn.1400a6d20
mov edx, 0x104
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp + 0x280]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14009ae40
lea rdx, [rbp + 0x280]
lea rcx, [rsp + 0x60]
call fcn.140070410
nop
lea r8, str.System32_ntdll.dll
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
cmp byte [rdi], 0
je 0x14009ae8b
call fcn.14007bd10
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140077d70
nop
jmp 0x14009aed5
call fcn.14007bd10
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp + 0x100]
call fcn.140077d70
nop
lea rcx, [rsp + 0x28]
call fcn.14006fd30
lea r8, str.SysWOW64_ntdll.dll
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.14007bd10
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140077d70
nop
lea rcx, [rsp + 0x28]
call fcn.14006fd30
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.14009b060
nop
lea rcx, [rbx + 0x180]
lea rdx, [rbp + 0x100]
call fcn.14009b060
nop
lea rcx, [rsp + 0x60]
call fcn.14006fd30
nop
xor edx, edx
lea rcx, [rbp + 0x100]
call fcn.140077fc0
lea rcx, [rbp + 0x238]
call fcn.140098da0
lea rcx, [rbp + 0x218]
call fcn.14006fd30
lea rcx, [rbp + 0x1f8]
call fcn.14006fd30
lea rcx, [rbp + 0x1b8]
call fcn.14006bbb0
lea rcx, [rbp + 0x178]
call fcn.14006bbb0
lea rcx, [rbp + 0x160]
call fcn.140079260
mov rcx, qword [rbp + 0x148]
test rcx, rcx
jle 0x14009af73
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rcx, qword [rbp + 0x110]
test rcx, rcx
jle 0x14009af85
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp + 0x108]
test rcx, rcx
jle 0x14009af97
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x100]
test rcx, rcx
jle 0x14009afaa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.140077fc0
lea rcx, [rbp + 0xb8]
call fcn.140098da0
lea rcx, [rbp + 0x98]
call fcn.14006fd30
lea rcx, [rbp + 0x78]
call fcn.14006fd30
lea rcx, [rbp + 0x38]
call fcn.14006bbb0
lea rcx, [rbp - 8]
call fcn.14006bbb0
lea rcx, [rbp - 0x20]
call fcn.140079260
mov rcx, qword [rbp - 0x38]
test rcx, rcx
jle 0x14009b000
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jle 0x14009b00f
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
jle 0x14009b01e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jle 0x14009b02d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.1400a40e0
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret