Function at 0x4da8f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
call fcn.00404c7c
xor eax, eax
push ebp
push 0x4dab7d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0x18]
call fcn.00404c8c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4dab46
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 - 0x138]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x10], 0x3e8
mov esi, dword [ebp - 0x18]
dec esi
test esi, esi
jl 0x4dab46
inc esi
mov dword [ebp - 0x30], 0
mov eax, dword [0x532ec0]
cmp byte [eax], 1
je 0x4dab46
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp dword [ebp + 0x18], 0
jne 0x4daa01
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 6
lea edx, [ebp - 0x240]
xor ecx, ecx
mov eax, 0x4dab98
call fcn.0040a2dc
jmp 0x4daa48
push dword [ebp + 0x18]
push 0x4daba4
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 6
lea edx, [ebp - 0x240]
xor ecx, ecx
mov eax, 0x4dab98
call fcn.0040a2dc
push dword [ebp - 0x244]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404b4c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 6
lea edx, [ebp - 0x240]
xor ecx, ecx
mov eax, 0x4dab98
call fcn.0040a2dc
mov eax, dword [ebp - 0x38]
mov edx, 0x4dabb0
call fcn.00404bd8
je 0x4dab3c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0046dddc
mov eax, dword [ebp - 0x38]
mov edx, 0x4dabc0
call fcn.00404bd8
jne 0x4daabe
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004da30c
mov eax, dword [ebp - 0x38]
mov edx, 0x4dabd0
call fcn.00404bd8
je 0x4daaeb
mov eax, dword [ebp - 0x38]
mov edx, 0x4dabe8
call fcn.00404bd8
je 0x4daaeb
mov eax, dword [ebp - 0x38]
mov edx, 0x4dac00
call fcn.00404bd8
jne 0x4dab07
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004da604
push ebx
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
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.004da8f8
mov dword [ebp - 0x10], 0x3e8
mov eax, dword [0x533210]
mov eax, dword [eax]
call fcn.0048e660
inc dword [ebp - 0x30]
dec esi
jne 0x4da9a2
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 0x4dab84
lea eax, [ebp - 0x244]
call fcn.004047cc
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004047f0
lea eax, [ebp + 0x18]
call fcn.004047cc
ret