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

Disassembly:
mov eax, 0x45dd70
call fcn.00451758
sub esp, 0x154
mov al, byte [ebp + 0xb]
push ebx
push esi
xor esi, esi
push edi
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x48], al
call fcn.004014dc
mov edi, str.SoftwareCLASSESCLSID280A8F40_E382_11d2_B561_00A0C92E6848
push edi
call fcn.004512a0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.0040156f
mov edi, 0x471298
mov dword [ebp - 4], esi
push edi
call fcn.004512a0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00401518
mov ebx, str.shellexPropertyPageHandlers
push ebx
call fcn.004512a0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x48]
call fcn.00401518
push edi
call fcn.004512a0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00401518
push dword [ebp + 0x14]
call fcn.004512a0
pop ecx
push eax
lea ecx, [ebp - 0x48]
push dword [ebp + 0x14]
call fcn.00401518
mov eax, dword [ebp - 0x44]
cmp eax, esi
jne 0x4229de
mov eax, 0x4614a8
lea ecx, [ebp - 0x10]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x10], esi
je 0x422c47
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
lea eax, [ebp + 0x14]
push esi
push eax
lea eax, [ebp - 0x160]
mov edi, 0x104
push eax
push esi
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], esi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x422c2f
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], edi
jae 0x422c2f
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x422c02
lea eax, [ebp - 0x4c]
mov dword [ebp + 0x14], edi
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x160]
push eax
mov dword [ebp - 0x4c], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x422bf9
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00408a15
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x422aa5
mov eax, dword [eax]
jmp 0x422aa7
xor eax, eax
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x422be6
cmp dword [ebp + 8], esi
mov dword [ebp - 0x20], esi
je 0x422ad6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, esi
je 0x422ad6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
lea eax, [ebp - 0x20]
push eax
push 0x464c98
push 5
lea eax, [ebp - 0x5c]
push esi
push eax
call ebx
cmp dword [ebp + 8], esi
mov ecx, dword [ebp - 0x20]
je 0x422af5
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
cmp eax, esi
jl 0x422be6
cmp ecx, esi
je 0x422be6
lea eax, [ebp + 0x14]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push str.DeviceName
mov dword [ebp + 0x14], edi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x422b3f
cmp dword [ebp - 0x38], 1
jne 0x422b3f
lea eax, [ebp - 0x160]
push eax
jmp 0x422b42
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.00408b4f
lea eax, [ebp - 0x1c]
push eax
push 0x467d28
push 1
push esi
push 0x467d18
call ebx
cmp eax, esi
jl 0x422be6
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push edx
mov ecx, dword [eax]
push 0x467cf8
push eax
call dword [ecx]
cmp eax, esi
jl 0x422be6
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x422b88
mov ecx, dword [eax]
jmp 0x422b8a
xor ecx, ecx
mov eax, dword [ebp - 0x30]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push edx
mov ecx, dword [eax]
push 0x464ca8
push eax
call dword [ecx]
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x422bd9
mov ecx, dword [eax]
push esi
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x422be6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, esi
je 0x422bf9
call fcn.00408a9c
mov dword [ebp - 0x2c], esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x24]
push esi
push esi
push esi
lea eax, [ebp + 0x14]
push esi
push eax
lea eax, [ebp - 0x160]
add dword [ebp - 0x18], 4
push eax
push dword [ebp - 0x24]
mov dword [ebp + 0x14], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x422a36
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x422c47
call fcn.00408a9c
mov dword [ebp - 0x14], esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x48]
call fcn.004014dc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret