Function at 0x180022f70
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0x890
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x880], rax
and word [rsp + 0x460], 0
lea rcx, [rsp + 0x462]
xor edx, edx
mov r8d, 0x410
call fcn.1801603e0
lea rcx, [rsp + 0x460]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx r11d, word [rsp + 0x460]
neg r11w
sbb ebx, ebx
not ebx
and ebx, 0x80070057
jl 0x180023033
lea rdx, str.ieframe.dll
lea rcx, [rsp + 0x460]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, 0x80070000
test eax, eax
jne 0x18002300d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x180023033
lea rcx, [rsp + 0x460]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180023033
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
xor dil, dil
test ebx, ebx
js 0x18002323e
and word [rsp + 0x40], 0
mov r12d, 0x208
lea rcx, [rsp + 0x42]
mov r8, r12
xor edx, edx
call fcn.1801603e0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftInternet_Explorer
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x104
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 1
test eax, eax
jne 0x1800230f5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, [0x18018f7c0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800230f5
lea rdx, [0x18018f7b8]
lea rcx, [rsp + 0x40]
call fcn.1801615c0
test rax, rax
je 0x1800230f5
and word [rax], 0
lea rcx, [rsp + 0x40]
call fcn.180162920
movzx edi, dil
cmp eax, 7
cmovge edi, ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180023105
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x18002323e
and word [rsp + 0x250], 0
lea rcx, [rsp + 0x252]
mov r8, r12
xor edx, edx
call fcn.1801603e0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareClassesTypeLibEAB22AC0_30C1_11CF_A7EB_0000C05BAE0B1.10win32
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x104
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002322e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x250]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18002322e
and word [rsp + 0x40], ax
lea rcx, [rsp + 0x42]
mov r8, r12
xor edx, edx
call fcn.1801603e0
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call fcn.180160a20
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea rdx, str.shdocvw.dll
lea rcx, [rsp + 0x250]
call fcn.180160c20
test eax, eax
jne 0x18002322e
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x18002322e
lea rdx, str.ieframe.dll
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x18002322e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x105
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18002323e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.1801604e0
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret