Function at 0x140030ae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14d, r9d
mov rbx, r8
mov rdi, rdx
movups xmm0, xmmword [r8]
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x40], 0
lea r12, vtable.CBrush.0
mov qword [rsp + 0x38], r12
mov r15d, 1
cmp dword [0x1403ff83c], 7
jne 0x140030c68
cmp dword [0x140401350], 0
jne 0x140030c5a
mov dword [0x140401350], r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftPlus_ThemesCurrent
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140030c5a
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x34], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030c4f
movups xmm0, xmmword [str.Windows_Classic.theme]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [0x140348a30]
movups xmmword [rsp + 0x78], xmm1
movsd xmm0, qword [0x140348a40]
movsd qword [rbp - 0x78], xmm0
mov eax, dword [0x140348a48]
mov dword [rbp - 0x70], eax
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jl 0x140030c4f
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, eax
movsxd rax, esi
lea rcx, [rbp - 0x60]
lea rcx, [rcx + rax*2]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x14040134c]
test eax, eax
cmove ecx, r15d
mov dword [0x14040134c], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14040134c], 0
mov ecx, reloc.OLEAUT32.dll_SafeArrayDestroy
je 0x140030c6d
mov ecx, 4
call qword [sym.imp.USER32.dll_GetSysColor]
test r14d, r14d
jne 0x140030c87
movsd xmm1, qword [0x140361ba8]
mov ecx, eax
call fcn.14002c890
mov ecx, eax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400fa688
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_FillRect]
lea rcx, [rsp + 0x38]
call int.1400fa7e4
cmp dword [0x1403ff83c], 2
jl 0x140030cdc
mov r9d, reloc.OLEAUT32.dll_SafeArrayDestroy
lea r8d, [r9 - 0xd]
lea rdx, [rsp + 0x58]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_DrawEdge]
mov ecx, 7
call qword [sym.imp.USER32.dll_GetSysColor]
mov r9d, dword [rbx + 4]
mov r8d, dword [rbx]
mov rdx, rdi
add r9d, 4
cmp qword [rbp + 0x220], 0
jne 0x140030d16
add r8d, 4
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call fcn.14002ff40
jmp 0x140030d24
add r8d, 5
mov dword [rsp + 0x20], eax
call fcn.14002fe00
nop
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x38]
call fcn.14000e0a0
mov eax, r15d
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14029d880
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret