Function at 0x140042040
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x4d0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x228]
call fcn.140089ff0
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
test eax, eax
je 0x14004251f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x1b8], xmm0
movdqa xmm1, xmmword [0x1400fe9e0]
movdqu xmmword [rsp + 0x1b8], xmm1
mov word [rsp + 0x1a8], si
lea rax, [rsp + 0x2b0]
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], si
jne 0x1400420db
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x1a8]
call fcn.140001a78
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x1d8], xmm0
movdqa xmm1, xmmword [0x1400fe9e0]
movdqu xmmword [rsp + 0x1d8], xmm1
mov word [rsp + 0x1c8], si
mov r8d, 9
lea rdx, str.ImagePath
lea rcx, [rsp + 0x1c8]
call fcn.140001a78
nop
mov qword [rsp + 0x198], rsi
mov qword [rsp + 0x1a0], rsi
mov qword [rsp + 0x198], rsi
mov r14d, 7
mov qword [rsp + 0x1a0], r14
mov word [rsp + 0x188], si
lea rcx, [rsp + 0x28]
call fcn.14006666c
nop
lea rcx, [rsp + 0x20]
call fcn.14006666c
nop
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x180], r14
mov word [rsp + 0x168], si
lea r8d, [r14 + 0x39]
lea rdx, str.HKEY_LOCAL_MACHINESystemCurrentControlSet_servicesRiftEnabler
lea rcx, [rsp + 0x168]
call fcn.140001a78
nop
mov r8d, 0x201
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x30]
call fcn.1400c1620
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c08bc
nop
lea rcx, [rsp + 0x30]
call fcn.1400c0898
nop
lea rcx, [rsp + 0x168]
call fcn.140001a14
nop
lea r8, [rsp + 0x1c8]
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x28]
call fcn.1400c0bc0
nop
lea rdx, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
jb 0x140042236
mov rdx, qword [rsp + 0x200]
mov r8, qword [rsp + 0x210]
lea rcx, [rsp + 0x188]
call fcn.140001a78
cmp qword [rsp + 0x198], rsi
jbe 0x14004230d
lea r8, [rsp + 0x188]
lea rdx, [0x1400e7f50]
lea rcx, [rsp + 0x168]
call fcn.140025d18
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140042284
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x1a8]
call fcn.14000f738
nop
lea rcx, [rsp + 0x168]
call fcn.140001a14
lea r8, [rdi + 0x20]
lea rdx, [rsp + 0x1a8]
call fcn.140042550
test al, al
jne 0x140042309
lea rcx, [rsp + 0x1f0]
call fcn.1400073a4
nop
lea rcx, [rsp + 0x20]
call fcn.1400c0898
nop
lea rcx, [rsp + 0x28]
call fcn.1400c0898
nop
lea rcx, [rsp + 0x188]
call fcn.140001a14
nop
lea rcx, [rsp + 0x1c8]
call fcn.140001a14
nop
lea rcx, [rsp + 0x1a8]
call fcn.140001a14
jmp 0x14004251f
mov byte [rdi + 0x40], 1
lea rcx, [rsp + 0x1f0]
call fcn.1400073a4
nop
lea rax, [rsp + 0x2b0]
inc rbx
cmp word [rax + rbx*2], si
jne 0x140042323
mov r8, rbx
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x1a8]
call fcn.140001a78
nop
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x180], r14
mov word [rsp + 0x168], si
mov r8d, 0x3d
lea rdx, str.HKEY_LOCAL_MACHINESystemCurrentControlSet_servicesOCUSBVID
lea rcx, [rsp + 0x168]
call fcn.140001a78
nop
mov r8d, 0x201
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x30]
call fcn.1400c1620
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400c08bc
nop
lea rcx, [rsp + 0x30]
call fcn.1400c0898
nop
lea rcx, [rsp + 0x168]
call fcn.140001a14
nop
lea r8, [rsp + 0x1c8]
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x20]
call fcn.1400c0bc0
nop
lea rdx, [rsp + 0x260]
cmp qword [rsp + 0x278], 8
jb 0x1400423fe
mov rdx, qword [rsp + 0x260]
mov r8, qword [rsp + 0x270]
lea rcx, [rsp + 0x188]
call fcn.140001a78
cmp qword [rsp + 0x198], rsi
jbe 0x1400424d2
lea r8, [rsp + 0x188]
lea rdx, [0x1400e7f50]
lea rcx, [rsp + 0x168]
call fcn.140025d18
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14004244c
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x1a8]
call fcn.14000f738
nop
lea rcx, [rsp + 0x168]
call fcn.140001a14
lea r8, [rdi + 0x48]
lea rdx, [rsp + 0x1a8]
call fcn.140042550
test al, al
jne 0x1400424ce
lea rcx, [rsp + 0x250]
call fcn.1400073a4
nop
lea rcx, [rsp + 0x20]
call fcn.1400c0898
nop
lea rcx, [rsp + 0x28]
call fcn.1400c0898
nop
lea rcx, [rsp + 0x188]
call fcn.140001a14
nop
lea rcx, [rsp + 0x1c8]
call fcn.140001a14
nop
lea rcx, [rsp + 0x1a8]
call fcn.140001a14
jmp 0x14004251f
mov byte [rdi + 0x68], 1
lea rcx, [rsp + 0x250]
call fcn.1400073a4
nop
lea rcx, [rsp + 0x20]
call fcn.1400c0898
nop
lea rcx, [rsp + 0x28]
call fcn.1400c0898
nop
lea rcx, [rsp + 0x188]
call fcn.140001a14
nop
lea rcx, [rsp + 0x1c8]
call fcn.140001a14
nop
lea rcx, [rsp + 0x1a8]
call fcn.140001a14
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.14006b800
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret