Function at 0x180006440
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x180033008]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor esi, esi
mov byte [rcx + 0x2e0], 1
mov qword [rcx + 0x20], rsi
lea rax, vtable.CShellExt.3.0
mov qword [rcx], rax
mov rbx, rcx
mov qword [rcx + 0x40], rsi
lea rax, vtable.CShellExt.2.0
mov qword [rcx + 8], rax
xor edx, edx
mov dword [rcx + 0x2d0], esi
lea rax, vtable.CShellExt.1.0
mov qword [rcx + 0x10], rax
mov r8d, 0x258
lea rax, vtable.CShellExt.0
mov qword [rcx + 0x2d8], rsi
mov qword [rcx + 0x18], rax
mov byte [rcx + 0xb02], sil
mov dword [rcx + 0xb04], esi
mov eax, dword [0x180033bd4]
mov dword [rcx + 0xb08], eax
mov byte [rcx + 0xb0c], sil
mov dword [rcx + 0xb10], esi
lea rcx, [rbp + 0x70]
call fcn.18000bdf0
mov rcx, qword [0x1800351e0]
lea rdx, [rbx + 0x4ea]
inc dword [0x1800351e8]
xor eax, eax
mov qword [rbx + 0x28], rax
mov r8d, 0x104
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x11c
call fcn.18000bdf0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, byte [rsp + 0x54]
movzx eax, byte [rsp + 0x58]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0xb10], ecx
cmp ecx, 0x600
jb 0x180006563
call fcn.180001b30
lea r8, str.2235625B_050A_45CC_B626_CC5E6884B1EB
mov qword [rsp + 0x30], rsi
lea rdx, str.CLSID_sSettings
mov dword [rsp + 0x38], esi
lea rcx, [rbp + 0x70]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x44], esi
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000676a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Title
mov qword [rsp + 0x3f8], rdi
xor r9d, r9d
lea rdi, [rbx + 0x250]
mov dword [rsp + 0x38], 0x80
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180006614
mov r8d, 0x40
lea rdx, [0x18002dc58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Dynamic
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdi, qword [rsp + 0x3f8]
test eax, eax
jne 0x180006661
cmp dword [rsp + 0x40], esi
je 0x180006661
mov byte [rbx + 0xb0c], 1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Maxtext
lea rax, [rsp + 0x48]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800066b7
cmp dword [rsp + 0x48], esi
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], esi
cmovbe rax, rcx
mov eax, dword [rax]
mov dword [rbx + 0xb08], eax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ShowIcon
lea rax, [rsp + 0x44]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800066fc
cmp dword [rsp + 0x44], esi
setne al
mov byte [rbx + 0x2e0], al
mov rcx, qword [rsp + 0x30]
lea rdx, str.CustomIcon
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000675f
lea rax, [rsp + 0x38]
mov byte [rbx + 0xb02], 1
lea rcx, [rbx + 0x8fa]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rdx, str.CustomIcon
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x38], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1800086e0
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret