Function at 0x4dc6f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffd0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dc952
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x419a34]
call fcn.00403894
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0x3fff
mov eax, dword [ebp - 0x14]
call fcn.00402b1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4dc930
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41948c]
call fcn.00403894
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0x4dc964
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4dc8b7
jmp 0x4dc892
mov dword [ebp - 0x14], 0x3fff
inc dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404948
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.004047e8
lea eax, [ebp - 0x20]
call fcn.004dc514
test al, al
je 0x4dc88a
mov dl, 1
mov eax, dword [0x4dc4a0]
call fcn.00403894
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 4
mov edx, dword [ebp - 0x1c]
call fcn.004047a4
mov eax, dword [ebp - 0x28]
add eax, 8
mov edx, dword [ebp - 0x20]
call fcn.004047a4
xor eax, eax
mov dword [ebp - 0x102c], eax
xor eax, eax
push ebp
push 0x4dc869
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404c10
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0x2c], 0x400
jge 0x4dc85f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dc873
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x102c]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0041bf4c
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x4dc8b7
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumValueA
test eax, eax
je 0x4dc79b
mov eax, dword [ebp - 0x24]
cmp dword [eax + 8], 0
jle 0x4dc8cd
mov edx, 0x4dc6ec
mov eax, dword [ebp - 0x24]
call fcn.0041c628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc937
cmp dword [ebp - 0x18], 0
je 0x4dc8e9
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x10]
call fcn.00402b4c
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4dc927
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.0041c14c
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.0041c14c
call fcn.004038c4
inc ebx
dec esi
jne 0x4dc8ff
mov eax, dword [ebp - 0x24]
call fcn.004038c4
ret