Function at 0x4e9560
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
call fcn.004d9840
cmp dword [ebp + 0xc], 0
jne 0x4e959e
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x20]
call fcn.004e3900
mov eax, dword [ebp - 0x154]
jmp 0x4e9a6a
push 0x627af4
mov eax, dword [ebp + 8]
push eax
call fcn.0040af50
add esp, 8
test eax, eax
je 0x4e95d0
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x20]
call fcn.004e3900
mov eax, dword [ebp - 0x158]
jmp 0x4e9a6a
lea ecx, [ebp - 0x20]
call fcn.004b4640
push eax
push 0x609118
push 1
push 0
push 0x627ae4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x4e9613
mov dword [ebp - 0x15c], 0
lea ecx, [ebp - 0x20]
call fcn.004e3900
mov eax, dword [ebp - 0x15c]
jmp 0x4e9a6a
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0
je 0x4e974f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x4e96df
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 1
jne 0x4e968c
lea ecx, [ebp - 0x20]
call fcn.004d6390
mov dword [ebp - 0x168], eax
lea edx, [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x168]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x18], eax
jmp 0x4e96bb
lea ecx, [ebp - 0x20]
call fcn.004d6390
mov dword [ebp - 0x16c], eax
lea edx, [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x16c]
push ecx
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x4e96dd
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x160], edx
lea ecx, [ebp - 0x20]
call fcn.004e3900
mov eax, dword [ebp - 0x160]
jmp 0x4e9a6a
jmp 0x4e9741
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 1
jne 0x4e9715
lea ecx, [ebp - 0x20]
call fcn.004d6390
mov dword [ebp - 0x170], eax
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
jmp 0x4e9741
lea ecx, [ebp - 0x20]
call fcn.004d6390
mov dword [ebp - 0x174], eax
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [ebp - 0x174]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x1c]
add ecx, 8
mov dword [ebp - 0x1c], ecx
jmp 0x4e9620
cmp dword [ebp + 0x10], 0
jne 0x4e9a52
push 0x40
lea edx, [ebp - 0xb8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
call fcn.00482bb0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x34]
call fcn.00409fa0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x4e979a
mov dword [ebp - 0x178], 0
jmp 0x4e9840
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x30], eax
push 2
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004d0980
add esp, 0xc
test eax, eax
jge 0x4e97cc
mov dword [ebp - 0x17c], 0
jmp 0x4e9834
cmp dword [ebp - 0x30], 0x400
jg 0x4e9804
mov edx, dword [ebp - 0x30]
push edx
call fcn.004d09e0
add esp, 4
movzx eax, al
test eax, eax
je 0x4e9804
mov eax, dword [ebp - 0x30]
call fcn.005a7d40
mov dword [ebp - 0x180], esp
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x184], ecx
jmp 0x4e9816
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x34]
call fcn.004d6040
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x184]
push eax
call fcn.004d0f70
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x4e9a4a
push str.CLSID_
push 0x80
lea eax, [ebp - 0x150]
push eax
call fcn.004e9350
add esp, 0xc
mov ecx, dword [ebp - 0x38]
push ecx
push 0x80
lea edx, [ebp - 0x150]
push edx
call fcn.004e9a80
add esp, 0xc
push str.Required_Categories
push 0x80
lea eax, [ebp - 0x150]
push eax
call fcn.004e9a80
add esp, 0xc
push accept
lea ecx, [ebp - 0xcc]
call fcn.004e9ab0
lea ecx, [ebp - 0xc0]
call fcn.00482890
mov dword [ebp - 0xd0], 0
push 0x20019
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.004d6390
push eax
lea ecx, [ebp - 0xc0]
call fcn.00482930
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x4e9956
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xd0]
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0xc0]
call fcn.004d6390
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0xc0]
call fcn.004828e0
cmp dword [ebp - 0xc4], 0
jne 0x4e9956
cmp dword [ebp - 0xd0], 0
jne 0x4e9956
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0048fac0
push str.CLSID_
push 0x80
lea ecx, [ebp - 0x150]
push ecx
call fcn.004e9350
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
push 0x80
lea eax, [ebp - 0x150]
push eax
call fcn.004e9a80
add esp, 0xc
push str.Implemented_Categories
push 0x80
lea ecx, [ebp - 0x150]
push ecx
call fcn.004e9a80
add esp, 0xc
push 0x20019
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0xcc]
call fcn.004d6390
push eax
lea ecx, [ebp - 0xc0]
call fcn.00482930
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x4e9a34
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xc0]
call fcn.004d6390
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0xc0]
call fcn.004828e0
cmp dword [ebp - 0xc4], 0
jne 0x4e9a34
cmp dword [ebp - 0xd0], 0
jne 0x4e9a34
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.0048fac0
lea ecx, [ebp - 0xc0]
call fcn.004828c0
lea ecx, [ebp - 0xcc]
call fcn.004828c0
lea ecx, [ebp - 0x34]
call fcn.00482cd0
mov dword [ebp - 0x164], 0
lea ecx, [ebp - 0x20]
call fcn.004e3900
mov eax, dword [ebp - 0x164]
lea esp, [ebp - 0x184]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 0xc