Function at 0x4dc884
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
call fcn.00404c7c
xor eax, eax
push ebp
push 0x4dcacc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x238]
mov eax, dword [ebp + 0x10]
call fcn.00408c7c
mov eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x23c]
mov eax, 0x4dcae4
call fcn.00408c7c
mov eax, dword [ebp - 0x23c]
pop edx
call fcn.00404dd0
test eax, eax
jg 0x4dca93
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0x10]
call fcn.00404c8c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4dca8a
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x10], 0x3e8
mov ebx, dword [ebp - 0x18]
dec ebx
test ebx, ebx
jl 0x4dca8a
inc ebx
mov dword [ebp - 0x30], 0
mov eax, dword [0x532ec0]
cmp byte [eax], 1
je 0x4dca8a
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp dword [ebp + 0x10], 0
jne 0x4dc9cf
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x4dcaf8
call fcn.0040a2dc
jmp 0x4dca16
push dword [ebp + 0x10]
push 0x4dcb04
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x4dcaf8
call fcn.0040a2dc
push dword [ebp - 0x248]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404b4c
mov eax, dword [0x533224]
inc dword [eax]
mov eax, dword [0x533224]
mov eax, dword [eax]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x4dca3b
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0046dddc
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004dc004
push esi
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004dc884
mov dword [ebp - 0x10], 0x3e8
mov eax, dword [0x533210]
mov eax, dword [eax]
call fcn.0048e660
inc dword [ebp - 0x30]
dec ebx
jne 0x4dc970
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dcad3
lea eax, [ebp - 0x248]
call fcn.004047cc
lea eax, [ebp - 0x23c]
mov edx, 2
call fcn.004047f0
lea eax, [ebp - 0x34]
call fcn.004047cc
lea eax, [ebp + 0x10]
call fcn.004047cc
ret