Function at 0x40eb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414598
push 0x409e9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push esi
push edi
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x230], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x24c], 0x104
lea eax, [ebp - 0x250]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
push SysReAllocString
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call esi
test eax, eax
je 0x40ec50
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x124]
push eax
push ebx
push str.ThemeActive
mov ecx, dword [ebp - 0x250]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
mov ebx, eax
mov dword [ebp - 0x23c], ebx
test ebx, ebx
jne 0x40ecbf
mov dword [ebp - 0x240], eax
lea edx, [ebp - 0x240]
push edx
push 0x419288
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
mov eax, dword [ebp - 0x240]
test eax, eax
jne 0x40ecbf
mov edi, str.Windows
jmp 0x40ee5b
mov dword [ebp - 0x24c], 0x104
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0
push str.DllName
mov eax, dword [ebp - 0x250]
push eax
call edi
mov ebx, eax
mov dword [ebp - 0x23c], ebx
test ebx, ebx
jne 0x40ee99
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x250], ebx
lea edx, [ebp - 0x250]
push edx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionThemes
push SysReAllocString
call esi
mov ebx, eax
mov dword [ebp - 0x23c], ebx
test ebx, ebx
jne 0x40ee99
mov dword [ebp - 0x24c], 0x104
lea eax, [ebp - 0x128]
push eax
push 0x20019
push ebx
push str.LastTheme
mov ecx, dword [ebp - 0x250]
push ecx
call esi
test eax, eax
jne 0x40eda0
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x124]
push ecx
push ebx
push str.ThemeFile
mov edx, dword [ebp - 0x128]
push edx
call edi
mov ebx, eax
mov dword [ebp - 0x23c], ebx
test ebx, ebx
jne 0x40ee99
movsx esi, byte [ebp - 0x11c]
jmp 0x40eddf
xor esi, esi
mov dword [ebp - 0x244], esi
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x124]
push edx
push esi
push str.CurrentTheme
mov eax, dword [ebp - 0x250]
push eax
call edi
test eax, eax
jne 0x40ede5
mov al, byte [ebp - 0x11c]
test al, al
je 0x40ede5
mov esi, 1
mov dword [ebp - 0x244], esi
test esi, esi
jne 0x40ee12
lea edi, [ebp - 0x230]
lea edx, [ebp - 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.MSVCRT.dll__strupr]
push str.LUNA
lea edx, [ebp - 0x11c]
push edx
mov esi, dword [sym.imp.MSVCRT.dll__mbsstr]
call esi
add esp, 0xc
test eax, eax
je 0x40ee41
mov edi, str.Windows_XP
jmp 0x40ee7b
push str.CUSTOM
lea ecx, [ebp - 0x11c]
push ecx
call esi
add esp, 8
test eax, eax
je 0x40ee76
mov edi, 0x4196a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x40ee94
mov edi, 0x419694
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0xffffffff
call fcn.0040eec3
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret