Function at 0x40e7c4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xacc
push esi
push edi
lea eax, [ebp - 0x24]
push eax
push 0x20019
xor esi, esi
push esi
push 0x402a78
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea84
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x784], 0x348
mov dword [ebp - 0x10], esi
push esi
lea eax, [ebp - 0x784]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x40ea7a
test byte [ebp - 0x640], 1
je 0x40ea6f
push esi
lea eax, [ebp - 0xacc]
push eax
push esi
lea eax, [ebp - 0x780]
push eax
mov dword [ebp - 0xacc], 0x348
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x40ea6f
push 0x206
lea eax, [ebp - 0x43a]
push esi
push eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x43c], si
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x1c]
test eax, eax
jne 0x40ea6f
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea6f
mov dword [ebp - 0x20], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x18], 0x208
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x20]
test eax, eax
jne 0x40ea5e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea56
push 0x206
lea eax, [ebp - 0x232]
push esi
push eax
mov dword [ebp - 8], 0x104
mov word [ebp - 0x234], si
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x402a60
push dword [ebp - 0xc]
call ebx
cmp dword [ebp - 4], 7
je 0x40e965
cmp dword [ebp - 4], 1
jne 0x40ea4d
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x984]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x40e995
test byte [ebp + 0xc], 1
je 0x40ea4d
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, 0x207
sub ecx, dword [ebp - 8]
lea eax, [ebp + eax*2 - 0x234]
mov dword [ebp - 8], ecx
mov word [eax], 0x5c
lea ecx, [ebp - 8]
push ecx
add eax, 2
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x402a50
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x40e9da
test byte [ebp + 0xc], 2
je 0x40ea4d
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x984]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40e9fe
cmp dword [ebp - 4], 7
je 0x40ea04
cmp dword [ebp - 4], 1
je 0x40ea04
test byte [ebp + 0xc], 4
je 0x40ea4d
lea eax, [ebp - 0x28]
push eax
push 0x20019
push esi
push 0x402a2c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea4d
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
push 0x402a20
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0x400
call ebx
push dword [ebp - 0x28]
mov edi, eax
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x40e8c9
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x40e877
inc dword [ebp - 0x10]
cmp edi, esi
je 0x40e809
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 0x16]
movzx ecx, byte [ecx + 0x15]
pop edi
imul eax, ecx
pop esi
leave
ret