Function at 0x4d4a84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409ecc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4d4ac5
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4d4d4b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00409dd8
xor eax, eax
mov dword [esi], eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004217ac
test al, al
je 0x4d4d21
movzx eax, byte [0x4d4d5c]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4d4d6c
mov edx, 0x4d4d7c
mov eax, dword [ebp - 4]
call fcn.004293ac
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 4]
call fcn.0040a210
movzx eax, byte [0x4d4d5c]
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x4d4d90
mov edx, 0x4d4d6c
mov eax, dword [ebp - 4]
call fcn.004293ac
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 4]
call fcn.0040a210
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x4d4da0
call fcn.0040ade0
lea eax, [ebp - 0xc]
call fcn.00409dd8
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.0040ab94
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
sete bl
test bl, bl
je 0x4d4d1b
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
call fcn.004d4a1c
test al, al
je 0x4d4c0c
mov edx, dword [ebp - 0x30]
inc edx
lea eax, [ebp - 0x10]
call fcn.0040ad08
mov ebx, dword [ebp - 0x34]
dec ebx
test ebx, ebx
jl 0x4d4c0c
inc ebx
xor edi, edi
lea eax, [ebp - 0xc]
call fcn.00409dd8
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
call fcn.0040a398
push eax
push edi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumValueW
test eax, eax
jne 0x4d4c08
mov eax, dword [ebp - 0x10]
call fcn.0040ab94
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040abf4
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x4d4dfc
call fcn.0040aff4
test eax, eax
jg 0x4d4c0c
inc edi
dec ebx
jne 0x4d4bae
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x4d4dfc
call fcn.0040aff4
mov edi, eax
test edi, edi
setg bl
test bl, bl
je 0x4d4d12
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4d4c39
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
push eax
lea edx, [edi + 9]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0040af50
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x4d4e1c
call fcn.0040aff4
test eax, eax
setg bl
test bl, bl
je 0x4d4d12
movzx eax, byte [0x4d4d5c]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x4d4e2c
mov edx, 0x4d4e1c
mov eax, dword [ebp - 0xc]
call fcn.004293ac
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0xc]
call fcn.0040a210
mov dl, 1
mov eax, dword [0x480374]
call fcn.004a6e3c
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
setg bl
test bl, bl
je 0x4d4d0a
lea ecx, [ebp - 0x4c]
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x4c]
push 0x4d4e1c
lea ecx, [ebp - 0x50]
mov edx, 1
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
mov edx, 3
call fcn.0040ae68
lea ecx, [ebp - 0x54]
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x54]
xor edx, edx
call fcn.004212b0
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
call fcn.00407fb8
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey
cmp dword [esi], 0
setg bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4d52
lea eax, [ebp - 0x54]
mov edx, 6
call fcn.00409e38
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00409e38
pop eax
jmp eax