Function at 0x4e3ae8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], 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.00404d18
xor eax, eax
push ebp
push 0x4e3d7a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x238]
mov eax, dword [ebp + 0x10]
call fcn.00408dd0
mov eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x23c]
mov eax, 0x4e3d94
call fcn.00408dd0
mov eax, dword [ebp - 0x23c]
pop edx
call fcn.00404e6c
test eax, eax
jg 0x4e3d41
lea edx, [ebp - 0x240]
mov eax, dword [ebp + 0x10]
call fcn.00408dd0
mov eax, dword [ebp - 0x240]
push eax
lea edx, [ebp - 0x244]
mov eax, 0x4e3da8
call fcn.00408dd0
mov eax, dword [ebp - 0x244]
pop edx
call fcn.00404e6c
test eax, eax
jg 0x4e3d41
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0x10]
call fcn.00404d28
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4e3d38
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 0x4e3d38
inc ebx
mov dword [ebp - 0x30], 0
mov eax, dword [0x55c098]
cmp byte [eax], 1
je 0x4e3d38
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 0x4e3c78
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 0x248], 6
lea edx, [ebp - 0x24c]
xor ecx, ecx
mov eax, 0x4e3db8
call fcn.0040a4d0
jmp 0x4e3cbf
push dword [ebp + 0x10]
push 0x4e3dc4
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 0x248], 6
lea edx, [ebp - 0x24c]
xor ecx, ecx
mov eax, 0x4e3db8
call fcn.0040a4d0
push dword [ebp - 0x250]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404be8
mov eax, dword [0x55c440]
inc dword [eax]
mov eax, dword [0x55c440]
mov eax, dword [eax]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x4e3ce4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0046d0e8
call fcn.004d27bc
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.004e308c
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.004e3ae8
mov dword [ebp - 0x10], 0x3e8
mov eax, dword [0x55c428]
mov eax, dword [eax]
call fcn.0048da60
inc dword [ebp - 0x30]
dec ebx
jne 0x4e3c19
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 0x4e3d81
lea eax, [ebp - 0x250]
call fcn.00404868
lea eax, [ebp - 0x244]
mov edx, 4
call fcn.0040488c
lea eax, [ebp - 0x34]
call fcn.00404868
lea eax, [ebp + 0x10]
call fcn.00404868
ret