Function at 0x10003080
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x100262c4]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
call fcn.10003540
cmp dword [ebp + 0xc], 0
jne 0x100030bc
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x20]
call fcn.10003060
mov eax, dword [ebp - 0x14c]
jmp 0x1000352c
push 0x10021ec4
mov eax, dword [ebp + 8]
push eax
call fcn.100027c0
add esp, 8
test eax, eax
je 0x100030ee
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x20]
call fcn.10003060
mov eax, dword [ebp - 0x150]
jmp 0x1000352c
lea ecx, [ebp - 0x20]
call fcn.10008260
push eax
push 0x10021450
push 1
push 0
push 0x10021eb4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10003131
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x20]
call fcn.10003060
mov eax, dword [ebp - 0x154]
jmp 0x1000352c
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 0x10003265
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 0x100031f9
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 1
jne 0x100031a8
lea ecx, [ebp - 0x20]
call fcn.10001ec0
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]
call dword [eax + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x100031d5
lea ecx, [ebp - 0x20]
call fcn.10001ec0
mov dword [ebp - 0x164], eax
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x100031f7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x158], eax
lea ecx, [ebp - 0x20]
call fcn.10003060
mov eax, dword [ebp - 0x158]
jmp 0x1000352c
jmp 0x10003257
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 1
jne 0x1000322d
lea ecx, [ebp - 0x20]
call fcn.10001ec0
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]
call dword [eax + 0x18]
jmp 0x10003257
lea ecx, [ebp - 0x20]
call fcn.10001ec0
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]
call dword [edx + 0x20]
mov eax, dword [ebp - 0x1c]
add eax, 8
mov dword [ebp - 0x1c], eax
jmp 0x1000313e
cmp dword [ebp + 0x10], 0
jne 0x10003514
push 0x40
lea ecx, [ebp - 0xb8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ole32.dll_StringFromGUID2]
call fcn.10001140
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x34]
call fcn.10008d60
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100032ad
mov dword [ebp - 0x170], 0
jmp 0x1000332c
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x400
jg 0x100032fc
mov eax, dword [ebp - 0x30]
push eax
call fcn.10001150
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x100032fc
mov eax, dword [ebp - 0x30]
add eax, 3
and eax, 0xfffffffc
call fcn.10016110
mov dword [ebp - 0x174], esp
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x178], edx
jmp 0x1000330e
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
call fcn.10001cb0
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x178]
push ecx
call fcn.100011f0
mov dword [ebp - 0x170], eax
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x1000350c
push str.CLSID_
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Required_Categories
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push SysReAllocString
lea ecx, [ebp - 0xc4]
call fcn.1000d250
lea ecx, [ebp - 0xbc]
call fcn.10008d60
mov dword [ebp - 0xc8], 0
push 0x20019
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.10001ec0
push eax
lea ecx, [ebp - 0xbc]
call fcn.10001860
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jne 0x1000342d
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.10001ec0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0xbc]
call fcn.100017b0
cmp dword [ebp - 0xc0], 0
jne 0x1000342d
cmp dword [ebp - 0xc8], 0
jne 0x1000342d
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10001c70
push str.CLSID_
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Implemented_Categories
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x20019
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebp - 0xc4]
call fcn.10001ec0
push eax
lea ecx, [ebp - 0xbc]
call fcn.10001860
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jne 0x100034f6
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.10001ec0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0xbc]
call fcn.100017b0
cmp dword [ebp - 0xc0], 0
jne 0x100034f6
cmp dword [ebp - 0xc8], 0
jne 0x100034f6
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.10001c70
lea ecx, [ebp - 0xbc]
call fcn.10001790
lea ecx, [ebp - 0xc4]
call fcn.10001790
lea ecx, [ebp - 0x34]
call fcn.10001d20
mov dword [ebp - 0x15c], 0
lea ecx, [ebp - 0x20]
call fcn.10003060
mov eax, dword [ebp - 0x15c]
lea esp, [ebp - 0x178]
mov ecx, dword [ebp - 4]
call fcn.10015c30
mov esp, ebp
pop ebp
ret 0xc