Function at 0x42c8ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc08
xor eax, eax
lea edx, [ebp - 0x3f8]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
push edx
call fcn.0045695c
add esp, 8
xor esi, esi
lea ebx, [ebp - 0x3f8]
jmp 0x42c930
movsx eax, byte [ebx]
cmp eax, 0x2f
jne 0x42c92e
movsx edx, byte [ebx - 1]
cmp edx, 0x5c
je 0x42c92e
mov byte [ebx], 0x5c
inc esi
inc ebx
push edi
call fcn.0045698c
pop ecx
cmp esi, eax
jb 0x42c91a
push str.HKEY_CLASSES_ROOT
call fcn.0045698c
pop ecx
push eax
push str.HKEY_CLASSES_ROOT
lea ecx, [ebp - 0x3f8]
push ecx
call fcn.00456a58
add esp, 0xc
test eax, eax
jne 0x42c96b
mov dword [ebp - 4], 1
jmp 0x42ca20
push str.HKEY_CURRENT_USER
call fcn.0045698c
pop ecx
push eax
push str.HKEY_CURRENT_USER
lea eax, [ebp - 0x3f8]
push eax
call fcn.00456a58
add esp, 0xc
test eax, eax
jne 0x42c99b
mov dword [ebp - 4], 2
jmp 0x42ca20
push str.HKEY_LOCAL_MACHINE
call fcn.0045698c
pop ecx
push eax
push str.HKEY_LOCAL_MACHINE
lea edx, [ebp - 0x3f8]
push edx
call fcn.00456a58
add esp, 0xc
test eax, eax
jne 0x42c9c8
mov dword [ebp - 4], 3
jmp 0x42ca20
push str.HKEY_USERS
call fcn.0045698c
pop ecx
push eax
push str.HKEY_USERS
lea ecx, [ebp - 0x3f8]
push ecx
call fcn.00456a58
add esp, 0xc
test eax, eax
jne 0x42c9f5
mov dword [ebp - 4], 4
jmp 0x42ca20
push str.HKEY_CURRENT_CONFIG
call fcn.0045698c
pop ecx
push eax
push str.HKEY_CURRENT_CONFIG
lea eax, [ebp - 0x3f8]
push eax
call fcn.00456a58
add esp, 0xc
test eax, eax
jne 0x42ca20
mov dword [ebp - 4], 5
push 0x5c
lea edx, [ebp - 0x3f8]
push edx
call fcn.00456a85
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x3f8]
inc ebx
push 0x5c
push eax
call fcn.00456a91
add esp, 8
mov byte [eax], 0
mov edx, dword [ebp - 4]
cmp edx, 5
ja case.0x42ca54.0
jmp dword [edx*4 + 0x42ca5b]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push ebx
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA
mov ebx, eax
jmp 0x42cafc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push ebx
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
mov ebx, eax
jmp 0x42cafc
lea edx, [ebp - 8]
push edx
push 0xf003f
push 0
push ebx
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
mov ebx, eax
jmp 0x42cafc
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push ebx
push 0x80000003
call sub.advapi32.dll_RegOpenKeyExA
mov ebx, eax
jmp 0x42cafc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push ebx
push 0x80000005
call sub.advapi32.dll_RegOpenKeyExA
mov ebx, eax
jmp 0x42cafc
xor eax, eax
jmp 0x42cb88
test ebx, ebx
jne 0x42cb86
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xc]
push edx
push 0
push ecx
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.0045698c
pop ecx
lea edx, [ebp - 0x3f7]
add eax, edx
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.advapi32.dll_RegQueryValueExA
mov ebx, eax
test ebx, ebx
je 0x42cb42
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
jmp 0x42cb88
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push edx
lea edx, [ebp - 0x3f8]
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push 0
push edx
call fcn.0045698c
pop ecx
lea ecx, [ebp - 0x3f7]
add eax, ecx
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
test ebx, ebx
jne 0x42cb82
mov al, 1
jmp 0x42cb88
xor eax, eax
jmp 0x42cb88
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret