Function at 0x406bec
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.004d7788
pop ecx
mov esi, eax
push 0x1388
call fcn.004d7788
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x12c
mov dword [ebp - 0xc], 0x1388
call fcn.004013fc
push 1
push 0x5ca3a3
push ebx
call fcn.004042b4
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call fcn.004cd3e4
pop ecx
push eax
mov edx, dword [ebp + 0x10]
push edx
push ebx
call fcn.004042b4
add esp, 0xc
push 2
push 0x5ca3a5
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 0x5ca3a8
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 0x5ca3aa
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 0x5ca3ac
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3ae
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3b0
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3b2
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3b4
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3b6
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3b8
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3ba
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3bc
push ebx
call fcn.004042b4
add esp, 0xc
jmp 0x406dba
push 1
push 0x5ca3be
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 0x5ca3c0
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 0x5ca3c2
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 0x5ca3ca
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.004cd3e4
pop ecx
mov edx, dword [ebp - 8]
add eax, edx
add eax, 2
push eax
call fcn.004d7788
pop ecx
mov dword [ebp - 0x18], eax
push esi
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5ca3cc
mov eax, dword [ebp - 0x18]
push eax
call fcn.004d1ac0
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.004d7720
pop ecx
jmp 0x406de2
call fcn.00401400
push esi
call fcn.004d7720
pop ecx
mov eax, dword [ebp - 4]
push eax
call fcn.004d7720
pop ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret