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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xad4
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
push 0x20019
xor esi, esi
push esi
push 0x401250
push 0x80000002
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ece
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x788], 0x348
mov dword [ebp - 0x10], esi
push esi
lea eax, [ebp - 0x788]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x401ec5
test byte [ebp - 0x644], 1
je 0x401eba
push esi
lea eax, [ebp - 0xad0]
push eax
push esi
lea eax, [ebp - 0x784]
push eax
mov dword [ebp - 0xad0], 0x348
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x401eba
push 0x206
lea eax, [ebp - 0x43e]
push esi
push eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x440], 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 - 0x440]
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 0x401eba
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401eba
mov dword [ebp - 0x20], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x440]
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 0x401ea9
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ea1
push 0x206
lea eax, [ebp - 0x236]
push esi
push eax
mov dword [ebp - 8], 0x104
mov word [ebp - 0x238], si
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x40129c
push dword [ebp - 0xc]
call ebx
cmp dword [ebp - 4], 7
je 0x401db0
cmp dword [ebp - 4], 1
jne 0x401e98
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x988]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x401de0
test byte [ebp + 0xc], 1
je 0x401e98
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x207
sub ecx, dword [ebp - 8]
lea eax, [ebp + eax*2 - 0x238]
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 0x4012d8
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x401e25
test byte [ebp + 0xc], 2
je 0x401e98
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x988]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401e49
cmp dword [ebp - 4], 7
je 0x401e4f
cmp dword [ebp - 4], 1
je 0x401e4f
test byte [ebp + 0xc], 4
je 0x401e98
lea eax, [ebp - 0x28]
push eax
push 0x20019
push esi
push 0x4012b4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e98
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
push 0x401240
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 0x401d14
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x401cc2
inc dword [ebp - 0x10]
cmp edi, esi
je 0x401c54
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 0x16]
movzx ecx, byte [ecx + 0x15]
pop edi
imul eax, ecx
pop esi
pop ebx
leave
ret