Function at 0x2001021f
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 0x20002ca0
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x200104df
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 0x200104d5
test byte [ebp - 0x640], 1
je 0x200104ca
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 0x200104ca
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 0x200104ca
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 0x200104ca
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 0x200104b9
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 0x200104b1
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 0x20002c88
push dword [ebp - 0xc]
call ebx
cmp dword [ebp - 4], 7
je 0x200103c0
cmp dword [ebp - 4], 1
jne 0x200104a8
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 0x200103f0
test byte [ebp + 0xc], 1
je 0x200104a8
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 0x20002c78
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x20010435
test byte [ebp + 0xc], 2
je 0x200104a8
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x984]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x20010459
cmp dword [ebp - 4], 7
je 0x2001045f
cmp dword [ebp - 4], 1
je 0x2001045f
test byte [ebp + 0xc], 4
je 0x200104a8
lea eax, [ebp - 0x28]
push eax
push 0x20019
push esi
push 0x20002c54
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x200104a8
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
push 0x20002c48
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 0x20010324
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x200102d2
inc dword [ebp - 0x10]
cmp edi, esi
je 0x20010264
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