Function at 0x413970
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
call fcn.004129a0
cmp dword [ebp + 0xc], 0
jne 0x4139ae
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x20]
call fcn.004138f0
mov eax, dword [ebp - 0x154]
jmp 0x413e7a
push 0x460228
mov eax, dword [ebp + 8]
push eax
call fcn.00414e60
add esp, 8
test eax, eax
je 0x4139e0
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x20]
call fcn.004138f0
mov eax, dword [ebp - 0x158]
jmp 0x413e7a
lea ecx, [ebp - 0x20]
call fcn.00412a10
push eax
push 0x4665f8
push 1
push 0
push 0x4602a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x413a23
mov dword [ebp - 0x15c], 0
lea ecx, [ebp - 0x20]
call fcn.004138f0
mov eax, dword [ebp - 0x15c]
jmp 0x413e7a
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 0x413b5f
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 0x413aef
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 1
jne 0x413a9c
lea ecx, [ebp - 0x20]
call fcn.00412a00
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 0x413acb
lea ecx, [ebp - 0x20]
call fcn.00412a00
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 0x413aed
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x160], edx
lea ecx, [ebp - 0x20]
call fcn.004138f0
mov eax, dword [ebp - 0x160]
jmp 0x413e7a
jmp 0x413b51
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 1
jne 0x413b25
lea ecx, [ebp - 0x20]
call fcn.00412a00
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 0x413b51
lea ecx, [ebp - 0x20]
call fcn.00412a00
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 0x413a30
cmp dword [ebp + 0x10], 0
jne 0x413e62
push 0x40
lea edx, [ebp - 0xb8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
call fcn.00402900
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x34]
call fcn.00414510
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x413baa
mov dword [ebp - 0x178], 0
jmp 0x413c50
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.00416970
add esp, 0xc
test eax, eax
jge 0x413bdc
mov dword [ebp - 0x17c], 0
jmp 0x413c44
cmp dword [ebp - 0x30], 0x400
jg 0x413c14
mov edx, dword [ebp - 0x30]
push edx
call fcn.004169d0
add esp, 4
movzx eax, al
test eax, eax
je 0x413c14
mov eax, dword [ebp - 0x30]
call fcn.00446070
mov dword [ebp - 0x180], esp
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x184], ecx
jmp 0x413c26
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x34]
call fcn.00416b40
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.00410500
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 0x413e5a
push str.CLSID_
push 0x80
lea eax, [ebp - 0x150]
push eax
call fcn.00413f00
add esp, 0xc
mov ecx, dword [ebp - 0x38]
push ecx
push 0x80
lea edx, [ebp - 0x150]
push edx
call fcn.00413940
add esp, 0xc
push str.Required_Categories
push 0x80
lea eax, [ebp - 0x150]
push eax
call fcn.00413940
add esp, 0xc
push SysReAllocStringLen
lea ecx, [ebp - 0xcc]
call fcn.00413910
lea ecx, [ebp - 0xc0]
call fcn.00417700
mov dword [ebp - 0xd0], 0
push 0x20019
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.00412a00
push eax
lea ecx, [ebp - 0xc0]
call fcn.00417540
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x413d66
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.00412a00
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0xc0]
call fcn.00417730
cmp dword [ebp - 0xc4], 0
jne 0x413d66
cmp dword [ebp - 0xd0], 0
jne 0x413d66
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004177d0
push str.CLSID_
push 0x80
lea ecx, [ebp - 0x150]
push ecx
call fcn.00413f00
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
push 0x80
lea eax, [ebp - 0x150]
push eax
call fcn.00413940
add esp, 0xc
push str.Implemented_Categories
push 0x80
lea ecx, [ebp - 0x150]
push ecx
call fcn.00413940
add esp, 0xc
push 0x20019
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0xcc]
call fcn.00412a00
push eax
lea ecx, [ebp - 0xc0]
call fcn.00417540
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x413e44
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.00412a00
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0xc0]
call fcn.00417730
cmp dword [ebp - 0xc4], 0
jne 0x413e44
cmp dword [ebp - 0xd0], 0
jne 0x413e44
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.004177d0
lea ecx, [ebp - 0xc0]
call fcn.00417780
lea ecx, [ebp - 0xcc]
call fcn.00417780
lea ecx, [ebp - 0x34]
call fcn.00402930
mov dword [ebp - 0x164], 0
lea ecx, [ebp - 0x20]
call fcn.004138f0
mov eax, dword [ebp - 0x164]
lea esp, [ebp - 0x184]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret 0xc