Function at 0x42efe0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [0x74b5d0], 0xa
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov edi, ecx
jge 0x42f087
push 0x7219f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42f31e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x721a08
push ebx
call esi
push 0x7f
push ebx
mov dword [ebp - 0x18], eax
call esi
push 0x83
push ebx
mov dword [ebp - 0x14], eax
call esi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x42f079
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x42f079
test eax, eax
je 0x42f079
lea eax, [ebp - 0x18]
push eax
call ecx
cmp dword [ebp - 0x18], 0
je 0x42f079
or edi, 0xffffff00
lea eax, [ebp - 0x44]
shl edi, 8
or edi, dword [ebp - 0x10]
shl edi, 8
or edi, dword [ebp + 8]
push eax
call esi
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
mov dword [ebp - 0x40], edi
call dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x42f31e
push 0x7a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x42f315
cmp byte [ebp + 0x10], 0
jne 0x42f267
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAccent
push 0x80000001
mov dword [ebp - 0x18], 4
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42f130
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.UseNewAutoColorAccentAlgorithm
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f10c
cmp dword [ebp - 0x14], eax
je 0x42f12b
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 4
push 0
push str.UseNewAutoColorAccentAlgorithm
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
push 0x80000001
call ebx
test eax, eax
jne 0x42f189
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.SystemUsesLightTheme
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f172
mov byte [ebp - 5], 1
cmp dword [ebp - 0x14], eax
jne 0x42f176
mov byte [ebp - 5], 0
push dword [ebp - 0xc]
call esi
cmp byte [ebp - 5], 0
je 0x42f189
mov eax, dword [ebp + 8]
jmp 0x42f2f4
cmp byte [ebp + 0xc], 0
je 0x42f267
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
push 0x80000001
call ebx
test eax, eax
jne 0x42f1fd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.ColorPrevalence
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f1d9
cmp dword [ebp - 0x14], 1
je 0x42f1f8
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 4
push 0
push str.ColorPrevalence
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsDWM
push 0x80000001
call ebx
test eax, eax
jne 0x42f267
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.ColorPrevalence
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f243
cmp dword [ebp - 0x14], 1
je 0x42f262
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 4
push 0
push str.ColorPrevalence
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 0x10]
xorps xmm2, xmm2
mov eax, dword [ebp + 8]
xorps xmm3, xmm3
cvtsi2ss xmm2, edi
cvtsi2ss xmm3, ecx
xorps xmm4, xmm4
movaps xmm0, xmm2
mulss xmm0, dword [0x7398a0]
movaps xmm1, xmm3
mulss xmm1, dword [0x7398cc]
cvtsi2ss xmm4, eax
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x739874]
addss xmm1, xmm0
divss xmm1, dword [0x739a44]
subss xmm1, dword [0x7398c4]
comiss xmm1, dword [0x739804]
jbe 0x42f2f7
movaps xmm0, xmm2
mulss xmm0, xmm1
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
subss xmm3, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm1
cvttss2si edi, xmm2
cvttss2si eax, xmm3
subss xmm4, xmm0
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm4
mov ecx, dword [ebp - 0x10]
or eax, 0xffffff00
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push 1
push eax
call dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret