Function at 0x42bfab
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4433fc
call fcn.004036d1
sub esp, 0x180
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
call dword [0x446f78]
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x28], eax
jbe 0x42bfed
cmp dword [ebp + 0x18], edi
je 0x42bfe3
cmp dword [ebp + 0x14], edi
jne 0x42bfed
mov eax, 0x80070057
jmp 0x42c262
mov esi, dword [ebp + 0x1c]
cmp esi, edi
jne 0x42bffe
mov eax, 0x80004003
jmp 0x42c262
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
mov dword [esi], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x42c24b
mov ebx, dword [ebp - 0x3c]
cmp ebx, edi
jne 0x42c026
xor eax, eax
jmp 0x42c04b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 0x28]
push esi
push ebx
push eax
call fcn.0040cd49
push eax
push 0x41d808
push 0x41d7d0
lea eax, [ebp - 0x18c]
push 0x41d8c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
test eax, eax
je 0x42c23f
call fcn.004046e1
test al, al
mov byte [ebp - 0x15], al
je 0x42c085
call dword [sym.imp.ole32.dll_CoRevertToSelf]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push 0x20019
lea eax, [ebp - 0x18c]
push eax
push 0x80000002
lea ecx, [ebp - 0x1c]
call fcn.004206b7
test eax, eax
jne 0x42c222
push 0x40
lea eax, [ebp - 0x8c]
push eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x42c222
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x42c0ec
cmp dword [ebp - 0x24], eax
jae 0x42c222
and byte [ebp + 0xb], 0
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 0x28]
lea ecx, [ebp - 0x8c]
push esi
push ecx
push eax
call fcn.0040cd05
lea ecx, [ebp - 0x4c]
push ecx
push eax
call ebx
test eax, eax
jl 0x42c141
push 4
xor eax, eax
pop ecx
mov edi, 0x42c284
lea esi, [ebp - 0x4c]
repe cmpsd dword [esi], dword es:[edi]
setne byte [ebp + 0xb]
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x42c198
and byte [ebp + 0xb], 0
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 1
push 0x20019
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.004206b7
test eax, eax
jne 0x42c18c
lea eax, [ebp - 0x38]
push eax
push 0x41d820
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
call fcn.0042ac61
test eax, eax
jne 0x42c18c
cmp dword [ebp - 0x38], 1
sete byte [ebp + 0xb]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00420652
cmp byte [ebp + 0xb], 0
je 0x42c202
cmp dword [ebp + 0x14], edi
mov dword [ebp - 0x14], edi
je 0x42c1f7
cmp dword [ebp + 0x18], edi
je 0x42c1f7
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 0x28]
lea ecx, [ebp - 0x8c]
push esi
push ecx
push eax
call fcn.0040cd05
push dword [ebp - 0x20]
push eax
call ebx
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x42c1f7
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call fcn.0042b054
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x24]
add dword [ebp - 0x2c], 4
add dword [ebp - 0x20], 0x10
inc dword [ebp - 0x34]
push 0x40
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x42c0dc
cmp byte [ebp - 0x15], 0
je 0x42c233
push dword [ebp - 0x14]
call fcn.00404730
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00420652
push dword [ebp - 0x3c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
jl 0x42c25f
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 0x198]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.004037c0
pop edi
pop esi
pop ebx
leave
ret 0x18