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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
xor edi, edi
push 0x12c
call fcn.004d8390
pop ecx
mov esi, eax
push 0x1388
call fcn.004d8390
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x12c
mov dword [ebp - 0xc], 0x1388
call fcn.004013fc
push 1
push 0x5cb92b
push ebx
call fcn.004042b4
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call fcn.004cdfec
pop ecx
push eax
mov edx, dword [ebp + 0x10]
push edx
push ebx
call fcn.004042b4
add esp, 0xc
push 2
push 0x5cb92d
push ebx
call fcn.004042b4
add esp, 0xc
mov dword [ebp - 8], 0x12c
mov dword [ebp - 0xc], 0x1388
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
mov eax, dword [ebp - 4]
push eax
push edx
push 0
push ecx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call sub.ADVAPI32.dll_RegEnumValueA
test eax, eax
jne 0x406de0
inc edi
mov edx, dword [ebp - 8]
test edx, edx
jne 0x406cad
push 1
push 0x5cb930
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406cbb
mov ecx, dword [ebp - 8]
push ecx
push esi
push ebx
call fcn.004042b4
add esp, 0xc
push 1
push 0x5cb932
push ebx
call fcn.004042b4
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp eax, 8
ja case.default.0x406cd7
jmp dword [eax*4 + 0x406cde]
push 1
push 0x5cb934
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb936
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb938
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb93a
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb93c
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb93e
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb940
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb942
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb944
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5cb946
push ebx
call fcn.004042b4
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
push ecx
push ebx
call fcn.004042b4
add esp, 0xc
push 1
push 0x5cb948
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406c60
xor edi, edi
mov dword [ebp - 8], 0x12c
push 0
push 0
push 0
lea eax, [ebp - 8]
push 0
push eax
push esi
push edi
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.dll_RegEnumKeyExA
test eax, eax
jne 0x406eb8
inc edi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x406e40
push 7
push 0x5cb94a
push ebx
call fcn.004042b4
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push esi
push ebx
call fcn.004042b4
add esp, 0xc
push 1
push 0x5cb952
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406de2
lea edx, [ebp - 0x14]
push edx
push 0xf013f
push 0
push esi
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x406de2
mov eax, dword [ebp + 0x10]
push eax
call fcn.004cdfec
pop ecx
mov edx, dword [ebp - 8]
add eax, edx
add eax, 2
push eax
call fcn.004d8390
pop ecx
mov dword [ebp - 0x18], eax
push esi
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5cb954
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d26c8
add esp, 0x10
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00406bec
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
call sub.ADVAPI32.dll_RegCloseKey
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d8328
pop ecx
jmp 0x406de2
call fcn.00401400
push esi
call fcn.004d8328
pop ecx
mov eax, dword [ebp - 4]
push eax
call fcn.004d8328
pop ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret