Function at 0x10002b7f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1000707c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x10001c90
xor edi, edi
mov dword [ebp - 0x310], eax
mov esi, 0x80000000
push 0x47
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x2e0], edi
mov dword [ebp - 0x2ec], edi
mov dword [ebp - 0x300], edi
mov dword [ebp - 0x304], edi
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x2e8], esi
mov dword [ebp - 0x2f4], esi
mov dword [ebp - 0x2f0], esi
mov dword [ebp - 0x2f8], esi
call fcn.100028a5
cmp eax, edi
jl 0x100030bb
push 0x27
lea eax, [ebp - 0xb8]
push eax
push ebx
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, edi
jl 0x100030bb
push 0x100030ec
push 0x47
lea eax, [ebp - 0xcc]
push eax
call fcn.100028df
cmp eax, edi
jl 0x100030bb
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0xcc]
push eax
push esi
mov dword [ebp - 0x308], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x10002c90
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x10002c90
push dword [ebp - 0x310]
lea eax, [ebp - 0x2dc]
push eax
call fcn.10002b7f
test eax, eax
je 0x100030bb
push 0x100030d8
push 0x47
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x2fc], edi
call fcn.100028a5
cmp eax, edi
jl 0x100030bb
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x2fc]
push eax
push 0x3f
lea eax, [ebp - 0xbc]
push eax
push ebx
call fcn.100029f9
cmp eax, edi
jl 0x100030bb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x2e8]
push eax
push 0x20019
push edi
lea eax, [ebp - 0xcc]
push eax
push esi
call ebx
test eax, eax
je 0x10002d0e
mov eax, 0x8002801d
jmp 0x100030bb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor eax, eax
push 0xd
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x2e8]
mov dword [ebp - 0x2e4], edi
call esi
test eax, eax
jne 0x10002df5
mov ebx, dword [sym.imp.msvcrt.dll_wcstoul]
push 0x10
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x20]
push eax
call ebx
movzx eax, ax
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x328]
add esp, 0xc
cmp word [eax], 0x2e
jne 0x10002dcd
push 0x10
add eax, 2
push edi
push eax
call ebx
add esp, 0xc
movzx eax, ax
cmp dword [ebp - 0x324], edi
jne 0x10002d8a
mov ecx, dword [ebp - 0x318]
cmp cx, word [ebp - 0x2fc]
ja 0x10002da2
mov ecx, dword [ebp - 0x318]
cmp cx, word [ebp - 0x2fc]
jne 0x10002dcd
cmp ax, word [ebp - 0x30c]
jb 0x10002dcd
movzx eax, ax
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0x20]
push eax
movzx ecx, cx
push 0xd
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2fc], ecx
call fcn.100028a5
mov ebx, eax
cmp ebx, edi
jl 0x1000302a
inc dword [ebp - 0x2e4]
push 0xd
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2e4]
push dword [ebp - 0x2e8]
call esi
test eax, eax
je 0x10002d37
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x2f4]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2e8]
call ebx
test eax, eax
jne 0x10002efc
push 0x10
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0x2e4], edi
push edi
jmp 0x10002e4d
lea eax, [ebp - 0xcc]
push eax
call fcn.1000282f
test eax, eax
jne 0x10002e5f
inc dword [ebp - 0x2e4]
push 0x10
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x2e4]
push dword [ebp - 0x2f4]
call esi
test eax, eax
jne 0x10002efc
jmp 0x10002e28
lea eax, [ebp - 0x2f0]
push eax
push 0x20019
push edi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x2f4]
call ebx
test eax, eax
jne 0x10002efc
lea eax, [ebp - 0x2f8]
push eax
push 0x20019
push edi
push 0x100030cc
push dword [ebp - 0x2f0]
call ebx
test eax, eax
je 0x10002ed3
push 6
lea eax, [ebp - 0xcc]
push eax
push edi
push dword [ebp - 0x2f0]
call esi
test eax, eax
jne 0x10002efc
lea eax, [ebp - 0x2f8]
push eax
push 0x20019
push edi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x2f0]
call ebx
test eax, eax
jne 0x10002efc
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x2cc]
push eax
push edi
push dword [ebp - 0x2f8]
mov dword [ebp - 0x308], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x10002f06
mov ebx, 0x8002801d
jmp 0x1000302a
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov ebx, eax
cmp ebx, edi
jl 0x1000302a
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
lea edx, [ebp - 0x2e0]
push edx
push dword [ebp - 0x31c]
push eax
call dword [ecx + 0x18]
mov ebx, eax
cmp ebx, edi
jl 0x1000302a
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax]
lea edx, [ebp - 0x2ec]
push edx
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jl 0x1000302a
mov eax, dword [ebp - 0x2ec]
test byte [eax + 0x36], 0x40
je 0x1000301a
cmp dword [eax + 0x28], 4
jne 0x1000301a
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax]
lea edx, [ebp - 0x320]
push edx
push 0xffffffffffffffff
push eax
call dword [ecx + 0x20]
mov ebx, eax
cmp ebx, edi
jl 0x1000302a
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax]
lea edx, [ebp - 0x304]
push edx
push dword [ebp - 0x320]
push eax
call dword [ecx + 0x38]
mov ebx, eax
cmp ebx, edi
jl 0x1000302a
mov eax, dword [ebp - 0x304]
mov ecx, dword [eax]
lea edx, [ebp - 0x300]
push edx
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jl 0x1000302a
mov eax, dword [ebp - 0x300]
cmp dword [eax + 0x28], 3
je 0x10002fe8
mov ebx, 0x8000ffff
jmp 0x1000302a
mov eax, dword [ebp - 0x2e0]
push dword [ebp - 0x2ec]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2ec], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x2e0], edi
jmp 0x10003020
mov ecx, dword [ebp - 0x2e0]
mov eax, dword [ebp - 0x310]
mov dword [eax], ecx
xor ebx, ebx
cmp dword [ebp - 0x2ec], edi
je 0x10003044
mov eax, dword [ebp - 0x2e0]
push dword [ebp - 0x2ec]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
cmp dword [ebp - 0x300], edi
je 0x1000305e
mov eax, dword [ebp - 0x304]
push dword [ebp - 0x300]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x314]
cmp eax, edi
je 0x1000306e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x80000000
cmp dword [ebp - 0x2f8], esi
je 0x10003089
push dword [ebp - 0x2f8]
call edi
cmp dword [ebp - 0x2f0], esi
je 0x10003099
push dword [ebp - 0x2f0]
call edi
cmp dword [ebp - 0x2f4], esi
je 0x100030a9
push dword [ebp - 0x2f4]
call edi
cmp dword [ebp - 0x2e8], esi
je 0x100030b9
push dword [ebp - 0x2e8]
call edi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100034be
leave
ret 8