Function at 0x42b190
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.00487600
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 0x42b1f0
sub ecx, edx
je 0x42b206
cmp byte [esp + ecx + 0x37], 0x5c
jne 0x42b206
mov byte [esp + ecx + 0x37], al
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4aa1d8]
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 0x42b5ee
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 0x42b5e4
mov eax, dword [esp + 0x2c]
mov ebx, dword [0x4aa1d8]
mov ecx, dword [esp + 0xc5c]
mov esi, dword [esp + 0xc58]
mov ebp, dword [esp + 0xc4c]
test eax, eax
je 0x42b3e7
cmp ecx, 2
je 0x42b3e7
mov dword [esp + 0x83c], 0
lea ebp, [eax - 1]
mov dword [esp + 0x840], 0
jmp 0x42b2b0
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 0x42b3a2
lea eax, [esp + 0x30]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x73
jne 0x42b329
lea ecx, [ecx]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0xc50]
push 2
call fcn.00423db0
mov ecx, dword [edi + 0x14]
mov esi, eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp edx, ecx
je 0x42b300
jmp 0x42b346
lea eax, [esp + 0x18]
push eax
push dword [esp + 0xc50]
push 3
call fcn.00423db0
mov edx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x1c], esi
test edx, edx
je 0x42b375
cmp esi, 6
jne 0x42b3ac
cmp edx, edi
je 0x42b37f
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 0x42b37f
cmp esi, 6
jne 0x42b3c0
mov esi, dword [esp + 0xc58]
test esi, esi
je 0x42b39a
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0042a630
test al, al
jne 0x42b3bc
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
test ebp, ebp
je 0x42b3d9
dec ebp
jmp 0x42b2b0
cmp edx, edi
jne 0x42b353
mov eax, dword [esp + 0xc50]
mov byte [eax], 1
jmp 0x42b35c
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 0x42b5e4
cmp ecx, 1
jne 0x42b406
cmp byte [esp + 0xc60], 0
je 0x42b5e4
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 0x42b5b9
cmp dword [esp + 0xc5c], 1
je 0x42b512
lea eax, [esp + 0x30]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x73
jne 0x42b493
lea esp, [esp]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x18]
push eax
push ebp
push 2
call fcn.00423db0
mov ecx, dword [edi + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp eax, ecx
je 0x42b470
jmp 0x42b4aa
lea eax, [esp + 0x18]
push eax
push ebp
push 3
call fcn.00423db0
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x42b4dd
cmp esi, 6
jne 0x42b5cd
cmp eax, edi
je 0x42b4eb
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 0x42b4eb
cmp esi, 6
jne 0x42b3c0
mov esi, dword [esp + 0xc58]
test esi, esi
je 0x42b50a
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0042a630
test al, al
jne 0x42b3bc
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
cmp byte [esp + 0xc60], 0
je 0x42b5b9
cmp byte [esp + 0x38], 0
lea eax, [esp + 0x438]
push eax
mov ecx, 0x49bc4d
mov eax, 0x49ec70
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.004715d0
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.0042b190
mov esi, eax
cmp esi, 1
jne 0x42b35c
mov eax, dword [esp + 0xc50]
cmp byte [eax], 0
jne 0x42b5e4
mov eax, dword [esp + 0xc54]
cmp dword [eax], 0
jne 0x42b5e4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42b5e4
mov esi, dword [esp + 0xc58]
jmp 0x42b411
cmp eax, edi
jne 0x42b4bb
mov eax, dword [esp + 0xc50]
mov byte [eax], 1
jmp 0x42b4c4
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