Function at 0x14002e1d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x468]
sub rsp, 0x540
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rdi, rdx
mov rax, qword [rdx + 0x18]
mov esi, dword [rax + 0x24]
xor ebx, ebx
lea r13d, [rbx + 1]
cmp dword [0x1403ff83c], 7
jne 0x14002e33c
cmp dword [0x140401350], ebx
jne 0x14002e32e
mov dword [0x140401350], r13d
lea rax, [rsp + 0x38]
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 0x14002e32e
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x34], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002e323
movups xmm0, xmmword [str.Windows_Classic.theme]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [0x140348a30]
movups xmmword [rbp - 0x30], xmm1
movsd xmm0, qword [0x140348a40]
movsd qword [rbp - 0x20], xmm0
mov eax, dword [0x140348a48]
mov dword [rbp - 0x18], eax
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jl 0x14002e321
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub ebx, eax
movsxd rax, ebx
lea rcx, [rbp - 0x10]
lea rcx, [rcx + rax*2]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x14040134c]
test eax, eax
cmove ecx, r13d
mov dword [0x14040134c], ecx
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14040134c], 0
jne 0x14002e33c
mov eax, r13d
jmp 0x14002e348
mov eax, ebx
cmp dword [0x1403ff430], r13d
sete al
mov ecx, 4
mov r14d, 7
test eax, eax
cmove r14d, ecx
bt esi, 0xb
jae 0x14002e4b4
mov dword [rdi + 0xc], ebx
mov ecx, reloc.OLEAUT32.dll_SafeArrayDestroy
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
sar ebx, 1
cmp dword [0x1403ff83c], 7
jne 0x14002e48b
cmp dword [0x140401350], 0
jne 0x14002e482
mov dword [0x140401350], r13d
lea rax, [rsp + 0x38]
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 0x14002e482
mov dword [rsp + 0x34], 0x104
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002e477
movups xmm0, xmmword [str.Windows_Classic.theme]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [0x140348a30]
movups xmmword [rbp - 0x30], xmm1
movsd xmm0, qword [0x140348a40]
movsd qword [rbp - 0x20], xmm0
mov eax, dword [0x140348a48]
mov dword [rbp - 0x18], eax
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jl 0x14002e477
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, eax
movsxd rax, esi
lea rcx, [rbp - 0x10]
lea rcx, [rcx + rax*2]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x14040134c]
test eax, eax
cmove ecx, r13d
mov dword [0x14040134c], ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14040134c], 0
je 0x14002e494
cmp dword [0x1403ff430], r13d
jne 0x14002e4a1
mov ebx, 3
mov dword [rdi + 0x10], ebx
jmp 0x14002e7a1
lea eax, [r14 + 0xf]
shr eax, 1
cmp ebx, eax
cmovle ebx, eax
mov dword [rdi + 0x10], ebx
jmp 0x14002e7a1
mov qword [rsp + 0x48], rbx
lea rax, vtable.CFont.0
mov qword [rsp + 0x40], rax
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x60]
call fcn.14029ff20
mov dword [rbp - 0x10], 0x1f8
xor r9d, r9d
lea r8, [rbp - 0x10]
mov edx, 0x1f8
lea ecx, [r9 + 0x29]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
movaps xmm0, xmmword [rbp + 0xd0]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [rbp + 0xe0]
movaps xmmword [rsp + 0x70], xmm1
movaps xmm0, xmmword [rbp + 0xf0]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [rbp + 0x100]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm0, xmmword [rbp + 0x110]
movaps xmmword [rbp - 0x60], xmm0
movsd xmm1, qword [rbp + 0x120]
movsd qword [rbp - 0x50], xmm1
mov eax, dword [rbp + 0x128]
mov dword [rbp - 0x48], eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400fa688
call fcn.14010fd08
test rax, rax
je 0x14002e577
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
mov r15, rax
test rax, rax
jne 0x14002e588
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
call fcn.1400fe1b8
mov r15, rax
mov rcx, qword [r15 + 0x40]
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
call fcn.1400fa914
mov rsi, rax
mov r12, rbx
mov eax, dword [0x1403ff83c]
cmp eax, 2
jl 0x14002e5c3
mov r8, qword [rsi]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [r8 + 0x50]
mov r12, rax
mov eax, dword [0x1403ff83c]
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rcx + 0x10]
mov qword [rsp + 0x38], 0
test eax, eax
je 0x14002e600
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002e5e0
lea r9, [rsp + 0x38]
mov rcx, qword [rsi + 8]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [0x1403ff83c]
mov rbx, qword [rsp + 0x38]
cmp eax, 2
jl 0x14002e616
mov rax, qword [rsi]
mov rdx, r12
mov rcx, rsi
call qword [rax + 0x50]
mov rdx, qword [rsi + 8]
mov rcx, qword [r15 + 0x40]
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [0x1403ff83c], 7
jne 0x14002e74f
cmp dword [0x140401350], 0
jne 0x14002e73a
mov dword [0x140401350], r13d
lea rax, [rsp + 0x50]
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 0x14002e73a
mov dword [rsp + 0x34], 0x104
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002e72f
movups xmm0, xmmword [str.Windows_Classic.theme]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [0x140348a30]
movups xmmword [rbp - 0x30], xmm1
movsd xmm0, qword [0x140348a40]
movsd qword [rbp - 0x20], xmm0
mov eax, dword [0x140348a48]
mov dword [rbp - 0x18], eax
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jl 0x14002e72f
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, eax
movsxd rax, esi
lea rcx, [rbp + 0x210]
lea rcx, [rcx + rax*2]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x14040134c]
test eax, eax
cmove ecx, r13d
mov dword [0x14040134c], ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14040134c], 0
jne 0x14002e74f
lea rax, [rdi + 0xc]
lea ecx, [rbx + 0x18]
add ecx, r14d
jmp 0x14002e767
lea rax, [rdi + 0xc]
cmp dword [0x1403ff430], 1
jne 0x14002e764
lea ecx, [rbx + 0x18]
add ecx, r14d
jmp 0x14002e767
lea ecx, [rbx + 0x21]
mov dword [rax], ecx
mov ecx, reloc.OLEAUT32.dll_SafeArrayDestroy
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [r14 + 0xf]
cmp eax, ecx
cmovg ecx, eax
mov dword [rdi + 0x10], ecx
lea rcx, [rsp + 0x40]
call int.1400fa7e4
nop
lea rax, vtable.CFont.0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.14000e0a0
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.14029d880
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret