Function at 0x10013a20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x1004f39c]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
call fcn.1000f9f0
cmp dword [ebp + 0xc], 0
jne 0x10013a5e
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x20]
call fcn.100158b0
mov eax, dword [ebp - 0x14c]
jmp 0x10013f21
push 0x10044848
mov eax, dword [ebp + 8]
push eax
call fcn.100138f0
test eax, eax
je 0x10013a8d
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x20]
call fcn.100158b0
mov eax, dword [ebp - 0x150]
jmp 0x10013f21
lea ecx, [ebp - 0x20]
call fcn.10021c00
push eax
push 0x10043088
push 1
push 0
push 0x10044838
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10013ad0
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x20]
call fcn.100158b0
mov eax, dword [ebp - 0x154]
jmp 0x10013f21
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 0x10013c0c
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 0x10013b9c
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 1
jne 0x10013b49
lea ecx, [ebp - 0x20]
call fcn.10012870
mov dword [ebp - 0x160], eax
lea edx, [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x160]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x18], eax
jmp 0x10013b78
lea ecx, [ebp - 0x20]
call fcn.10012870
mov dword [ebp - 0x164], eax
lea edx, [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x164]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10013b9a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x158], edx
lea ecx, [ebp - 0x20]
call fcn.100158b0
mov eax, dword [ebp - 0x158]
jmp 0x10013f21
jmp 0x10013bfe
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 1
jne 0x10013bd2
lea ecx, [ebp - 0x20]
call fcn.10012870
mov dword [ebp - 0x168], eax
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
jmp 0x10013bfe
lea ecx, [ebp - 0x20]
call fcn.10012870
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x16c]
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 0x10013add
cmp dword [ebp + 0x10], 0
jne 0x10013f09
push 0x40
lea edx, [ebp - 0xb8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
call fcn.1000c0c0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x34]
call fcn.10014380
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x10013c57
mov dword [ebp - 0x170], 0
jmp 0x10013cf7
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.1000bf80
test eax, eax
jge 0x10013c86
mov dword [ebp - 0x174], 0
jmp 0x10013ceb
cmp dword [ebp - 0x30], 0x400
jg 0x10013cbb
mov edx, dword [ebp - 0x30]
push edx
call fcn.1000bfe0
movzx eax, al
test eax, eax
je 0x10013cbb
mov eax, dword [ebp - 0x30]
call fcn.1002da90
mov dword [ebp - 0x178], esp
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
jmp 0x10013ccd
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x34]
call fcn.10014ed0
mov dword [ebp - 0x17c], 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 - 0x17c]
push eax
call fcn.1000c0d0
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x10013f01
push str.CLSID_
push 0x80
lea eax, [ebp - 0x148]
push eax
call fcn.10013f40
add esp, 0xc
mov ecx, dword [ebp - 0x38]
push ecx
push 0x80
lea edx, [ebp - 0x148]
push edx
call fcn.10013f60
add esp, 0xc
push str.Required_Categories
push 0x80
lea eax, [ebp - 0x148]
push eax
call fcn.10013f60
add esp, 0xc
push SysReAllocStringLen
lea ecx, [ebp - 0xc4]
call fcn.100062a0
lea ecx, [ebp - 0xbc]
call fcn.10014380
mov dword [ebp - 0xc8], 0
push 0x20019
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.10012870
push eax
lea ecx, [ebp - 0xbc]
call fcn.10012990
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jne 0x10013e0d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xc8]
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0xbc]
call fcn.10012870
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0xbc]
call fcn.100128e0
cmp dword [ebp - 0xc0], 0
jne 0x10013e0d
cmp dword [ebp - 0xc8], 0
jne 0x10013e0d
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10012880
push str.CLSID_
push 0x80
lea ecx, [ebp - 0x148]
push ecx
call fcn.10013f40
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
push 0x80
lea eax, [ebp - 0x148]
push eax
call fcn.10013f60
add esp, 0xc
push 0x10043050
push 0x80
lea ecx, [ebp - 0x148]
push ecx
call fcn.10013f60
add esp, 0xc
push 0x20019
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebp - 0xc4]
call fcn.10012870
push eax
lea ecx, [ebp - 0xbc]
call fcn.10012990
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jne 0x10013eeb
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xbc]
call fcn.10012870
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0xbc]
call fcn.100128e0
cmp dword [ebp - 0xc0], 0
jne 0x10013eeb
cmp dword [ebp - 0xc8], 0
jne 0x10013eeb
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.10012880
lea ecx, [ebp - 0xbc]
call fcn.10012850
lea ecx, [ebp - 0xc4]
call fcn.10012850
lea ecx, [ebp - 0x34]
call fcn.10014f40
mov dword [ebp - 0x15c], 0
lea ecx, [ebp - 0x20]
call fcn.100158b0
mov eax, dword [ebp - 0x15c]
lea esp, [ebp - 0x17c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cef5
mov esp, ebp
pop ebp
ret 0xc