Function at 0x180022ac4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x290
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r12, rdx
mov rbx, qword [0x18015f768]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x19]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x180022b77
lea rcx, [rbx - 0xc]
lea rsi, [0x18015f758]
or edi, 0xffffffff
cmp rcx, rsi
je 0x180022b51
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x180022b51
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x180022b70
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x180022b70
call fcn.1800d1434
xor eax, eax
jmp 0x180022d84
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180003e28
mov r11, qword [rsp + 0x30]
cmp dword [r11 - 8], 0
jle 0x180022ba9
lea rcx, [rsp + 0x30]
call fcn.1800cde54
lea rcx, str.OperaOpera_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, str.OperaOpera_
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180008324
lea r8, [0x180116b88]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1800084fc
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180003500
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
lea rsi, [0x18015f758]
or edi, 0xffffffff
cmp rcx, rsi
je 0x180022c20
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x180022c20
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
lea rdx, [rsp + 0x40]
lea rcx, [0x18015f720]
call fcn.1800ce3c8
test eax, eax
jne 0x180022c7b
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x180022c55
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x180022c55
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x180022c74
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x180022c74
call fcn.1800d1434
xor eax, eax
jmp 0x180022d84
mov rbx, qword [rsp + 0x30]
lea rbp, [rbx - 0xc]
cmp dword [rbp], 0
jl 0x180022c96
mov qword [rsp + 0x38], rbx
lock add dword [rbp], 1
jmp 0x180022cba
mov rax, qword [0x18015f768]
mov qword [rsp + 0x38], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.180003e28
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x38]
lea rcx, [0x180162a70]
call fcn.180003500
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x180022cfe
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x180022cfe
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
lea rdx, [rsp + 0x50]
lea rcx, vtable.CEntryInstaller.0
call fcn.180040880
nop
mov rdx, rax
mov rcx, r12
call fcn.180003500
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x180022d45
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x180022d45
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x180022d65
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x180022d65
call fcn.1800d1434
nop
cmp rbp, rsi
je 0x180022d7f
mov edx, edi
lock xadd dword [rbp], edx
add edx, edi
test edx, edx
jg 0x180022d7f
mov rcx, rbp
call fcn.1800d1434
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800d12b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret