Function at 0x4c5984
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 - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
call fcn.00404c98
xor eax, eax
push ebp
push 0x4c5c72
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0x14]
call fcn.00404ca8
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4c5c3b
push 0
push 0
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
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0xc], 0x3e8
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x4c5c3b
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [0x4fc898]
cmp byte [eax], 1
je 0x4c5c3b
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp dword [ebp + 0x14], 0
jne 0x4c5a8f
lea eax, [ebp - 0x30]
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, 0x4c5c8c
call fcn.0040a1dc
jmp 0x4c5ad6
push dword [ebp + 0x14]
push 0x4c5c98
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, 0x4c5c8c
call fcn.0040a1dc
push dword [ebp - 0x244]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404b68
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, 0x4c5c8c
call fcn.0040a1dc
mov eax, dword [ebp - 0x34]
mov edx, 0x4c5ca4
call fcn.00404bf4
je 0x4c5c2f
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00469d04
mov eax, dword [ebp - 0x34]
mov edx, 0x4c5cb4
call fcn.00404bf4
jne 0x4c5b47
mov eax, dword [ebp - 0x30]
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, edi
mov eax, esi
call fcn.004c4fdc
mov eax, dword [ebp - 0x34]
mov edx, 0x4c5cc4
call fcn.00404bf4
jne 0x4c5b71
mov eax, dword [ebp - 0x30]
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, edi
mov eax, esi
call fcn.004c4e10
mov eax, dword [ebp - 0x34]
mov edx, 0x4c5cd4
call fcn.00404bf4
je 0x4c5b9e
mov eax, dword [ebp - 0x34]
mov edx, 0x4c5cec
call fcn.00404bf4
je 0x4c5b9e
mov eax, dword [ebp - 0x34]
mov edx, 0x4c5d04
call fcn.00404bf4
jne 0x4c5bb5
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.004c5228
mov eax, dword [ebp - 0x34]
call fcn.00404aa8
cmp eax, 0x26
jne 0x4c5bd9
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.004c53ec
mov eax, dword [ebp - 0x34]
mov edx, 0x4c5d1c
call fcn.00404bf4
jne 0x4c5bff
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.004c5724
push ebx
mov eax, dword [ebp - 0x30]
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, edi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004c5984
mov dword [ebp - 0xc], 0x3e8
mov eax, dword [0x4fcbc4]
mov eax, dword [eax]
call fcn.00489ae4
inc dword [ebp - 0x2c]
dec dword [ebp - 0x38]
jne 0x4c5a30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5c79
lea eax, [ebp - 0x244]
call fcn.004047e8
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0040480c
lea eax, [ebp + 0x14]
call fcn.004047e8
ret