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

Disassembly:
sub esp, 0xc38
mov eax, dword [esp + 0xc54]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x30], eax
mov edi, ecx
mov eax, dword [esp + 0xc68]
push 0x3ff
push dword [esp + 0xc70]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x844], 0
mov byte [esp + 0x444], 0
call fcn.00488ae0
lea ecx, [esp + 0x44]
mov byte [esp + 0x443], 0
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c6d0
sub ecx, edx
je 0x42c6e6
cmp byte [esp + ecx + 0x37], 0x5c
jne 0x42c6e6
mov byte [esp + ecx + 0x37], al
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4ac1d8]
mov eax, dword [eax + 0xb0]
or eax, 9
push eax
push 0
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42cace
push eax
push eax
push eax
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x42cac4
mov eax, dword [esp + 0x2c]
mov ebx, dword [0x4ac1d8]
mov ecx, dword [esp + 0xc5c]
mov esi, dword [esp + 0xc58]
mov ebp, dword [esp + 0xc4c]
test eax, eax
je 0x42c8c7
cmp ecx, 2
je 0x42c8c7
mov dword [esp + 0x83c], 0
lea ebp, [eax - 1]
mov dword [esp + 0x840], 0
jmp 0x42c790
push 0
push 0
lea eax, [esp + 0x840]
mov dword [esp + 0x28], 0x400
push eax
push 0
lea eax, [esp + 0x30]
mov byte [esp + 0x448], 0
push eax
lea eax, [esp + 0x44c]
push eax
push ebp
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x42c882
lea eax, [esp + 0x30]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x73
jne 0x42c809
lea ecx, [ecx]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0xc50]
push 2
call fcn.00425290
mov ecx, dword [edi + 0x14]
mov esi, eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp edx, ecx
je 0x42c7e0
jmp 0x42c826
lea eax, [esp + 0x18]
push eax
push dword [esp + 0xc50]
push 3
call fcn.00425290
mov edx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x1c], esi
test edx, edx
je 0x42c855
cmp esi, 6
jne 0x42c88c
cmp edx, edi
je 0x42c85f
mov eax, dword [esp + 0xc54]
mov dword [eax], edx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc38
ret 0x24
cmp esi, 1
je 0x42c85f
cmp esi, 6
jne 0x42c8a0
mov esi, dword [esp + 0xc58]
test esi, esi
je 0x42c87a
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0042bb10
test al, al
jne 0x42c89c
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
test ebp, ebp
je 0x42c8b9
dec ebp
jmp 0x42c790
cmp edx, edi
jne 0x42c833
mov eax, dword [esp + 0xc50]
mov byte [eax], 1
jmp 0x42c83c
mov esi, dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc38
ret 0x24
mov ebp, dword [esp + 0xc4c]
mov ecx, dword [esp + 0xc5c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42cac4
cmp ecx, 1
jne 0x42c8e6
cmp byte [esp + 0xc60], 0
je 0x42cac4
mov dword [esp + 0x838], 0xfffffffe
lea ecx, [esp + 0x83c]
mov dword [esp + 0x20], 0x400
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x30]
dec eax
push ecx
lea ecx, [esp + 0x44c]
mov dword [esp + 0x38], eax
push ecx
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x42ca99
cmp dword [esp + 0xc5c], 1
je 0x42c9f2
lea eax, [esp + 0x30]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x73
jne 0x42c973
lea esp, [esp]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x18]
push eax
push ebp
push 2
call fcn.00425290
mov ecx, dword [edi + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp eax, ecx
je 0x42c950
jmp 0x42c98a
lea eax, [esp + 0x18]
push eax
push ebp
push 3
call fcn.00425290
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x42c9bd
cmp esi, 6
jne 0x42caad
cmp eax, edi
je 0x42c9cb
mov ecx, dword [esp + 0xc54]
mov dword [ecx], eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc38
ret 0x24
cmp esi, 1
je 0x42c9cb
cmp esi, 6
jne 0x42c8a0
mov esi, dword [esp + 0xc58]
test esi, esi
je 0x42c9ea
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0042bb10
test al, al
jne 0x42c89c
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
cmp byte [esp + 0xc60], 0
je 0x42ca99
cmp byte [esp + 0x38], 0
lea eax, [esp + 0x438]
push eax
mov ecx, 0x49e065
mov eax, 0x4a1034
cmove eax, ecx
push eax
lea eax, [esp + 0x40]
push eax
push str._s_s_s
lea eax, [esp + 0x858]
push 0x400
push eax
call fcn.00472ab0
mov ecx, dword [esp + 0xc6c]
lea eax, [esp + 0x860]
add esp, 0x18
push eax
push dword [esp + 0xc6c]
push dword [esp + 0xc6c]
push dword [esp + 0xc6c]
push dword [esp + 0xc6c]
push esi
push ecx
push dword [esp + 0xc6c]
mov ecx, edi
push ebp
call fcn.0042c670
mov esi, eax
cmp esi, 1
jne 0x42c83c
mov eax, dword [esp + 0xc50]
cmp byte [eax], 0
jne 0x42cac4
mov eax, dword [esp + 0xc54]
cmp dword [eax], 0
jne 0x42cac4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42cac4
mov esi, dword [esp + 0xc58]
jmp 0x42c8f1
cmp eax, edi
jne 0x42c99b
mov eax, dword [esp + 0xc50]
mov byte [eax], 1
jmp 0x42c9a4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc38
ret 0x24