Function at 0x4e18ac
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.00404d18
xor eax, eax
push ebp
push 0x4e1b36
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.00404d28
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4e1aff
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 0x4e1aff
inc esi
mov dword [ebp - 0x30], 0
mov eax, dword [0x55c098]
cmp byte [eax], 1
je 0x4e1aff
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 0x4e19b5
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, 0x4e1b50
call fcn.0040a4d0
jmp 0x4e19fc
push dword [ebp + 0x18]
push 0x4e1b5c
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, 0x4e1b50
call fcn.0040a4d0
push dword [ebp - 0x244]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404be8
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, 0x4e1b50
call fcn.0040a4d0
mov eax, dword [ebp - 0x38]
mov edx, 0x4e1b68
call fcn.00404c74
je 0x4e1af5
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0046d0e8
call fcn.004d27bc
mov eax, dword [ebp - 0x38]
mov edx, 0x4e1b78
call fcn.00404c74
jne 0x4e1a77
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.004e1134
mov eax, dword [ebp - 0x38]
mov edx, 0x4e1b88
call fcn.00404c74
je 0x4e1aa4
mov eax, dword [ebp - 0x38]
mov edx, 0x4e1ba0
call fcn.00404c74
je 0x4e1aa4
mov eax, dword [ebp - 0x38]
mov edx, 0x4e1bb8
call fcn.00404c74
jne 0x4e1ac0
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.004e150c
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.004e18ac
mov dword [ebp - 0x10], 0x3e8
mov eax, dword [0x55c428]
mov eax, dword [eax]
call fcn.0048da60
inc dword [ebp - 0x30]
dec esi
jne 0x4e1956
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 0x4e1b3d
lea eax, [ebp - 0x244]
call fcn.00404868
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0040488c
lea eax, [ebp + 0x18]
call fcn.00404868
ret