Function at 0x4eba68
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 + 0x18]
mov eax, dword [ebp + 0x14]
call fcn.00404728
xor eax, eax
push ebp
push 0x4ebce1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0x14]
call fcn.00404738
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4ebcaa
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 0x4ebcaa
inc esi
mov dword [ebp - 0x30], 0
mov eax, dword [0x53a7c8]
cmp byte [eax], 1
je 0x4ebcaa
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 + 0x14], 0
jne 0x4ebb71
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, 0x4ebcfc
call fcn.00409de4
jmp 0x4ebbb8
push dword [ebp + 0x14]
push 0x4ebd08
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, 0x4ebcfc
call fcn.00409de4
push dword [ebp - 0x244]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004045f8
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, 0x4ebcfc
call fcn.00409de4
mov eax, dword [ebp - 0x38]
mov edx, 0x4ebd14
call fcn.00404684
je 0x4ebca0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.004707c4
mov eax, dword [ebp - 0x38]
mov edx, 0x4ebd24
call fcn.00404684
jne 0x4ebc2a
mov eax, dword [ebp - 0x34]
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.004eb6d8
mov eax, dword [ebp - 0x38]
mov edx, 0x4ebd34
call fcn.00404684
je 0x4ebc57
mov eax, dword [ebp - 0x38]
mov edx, 0x4ebd4c
call fcn.00404684
je 0x4ebc57
mov eax, dword [ebp - 0x38]
mov edx, 0x4ebd64
call fcn.00404684
jne 0x4ebc6f
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov ecx, ebx
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004eb8a4
push ebx
mov eax, dword [ebp - 0x34]
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.004eba68
mov dword [ebp - 0x10], 0x3e8
mov eax, dword [0x53ab08]
mov eax, dword [eax]
call fcn.00490870
inc dword [ebp - 0x30]
dec esi
jne 0x4ebb12
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 0x4ebce8
lea eax, [ebp - 0x244]
call fcn.00404278
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0040429c
lea eax, [ebp + 0x14]
call fcn.00404278
ret