Function at 0x6d8f4090
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x6d90dc8c]
xor eax, ebp
mov dword [ebp + 0xb4], eax
push ebx
mov ebx, dword [ebp + 0xc4]
push esi
mov esi, dword [ebp + 0xc0]
push edi
xor edi, edi
mov dword [ebp - 0x60], edi
cmp ebx, edi
je 0x6d8f437a
mov eax, dword [esi]
cmp eax, dword [0x6d907150]
jne 0x6d8f40f6
mov ecx, dword [esi + 4]
cmp ecx, dword [0x6d907154]
jne 0x6d8f40f6
mov edx, dword [esi + 8]
cmp edx, dword [0x6d907158]
jne 0x6d8f40f6
mov eax, dword [esi + 0xc]
cmp eax, dword [0x6d90715c]
je 0x6d8f437a
lea ecx, [ebp - 0x60]
push ecx
push 0x6d906a18
push 1
push edi
push 0x6d907180
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x6d8f4129
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x6d8f437a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x6d8f437a
cmp dword [ebx], edi
je 0x6d8f418e
lea ecx, [ecx]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x58], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x54], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], edx
mov ecx, dword [eax]
lea edx, [ebp - 0x5c]
push edx
push 1
push esi
push eax
cmp dword [ebp + 0xc8], edi
je 0x6d8f4178
cmp dword [ebx], 1
jne 0x6d8f4169
mov eax, dword [ecx + 0x14]
jmp 0x6d8f416c
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
js 0x6d8f41f2
xor edi, edi
jmp 0x6d8f4187
cmp dword [ebx], 1
jne 0x6d8f4182
mov eax, dword [ecx + 0x18]
jmp 0x6d8f4185
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
cmp dword [ebx], edi
jne 0x6d8f4130
cmp dword [ebp + 0xc8], edi
jne 0x6d8f436b
push 0x40
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x74], edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], eax
call fcn.6d8f22d0
add esp, 0xc
test eax, eax
js 0x6d8f4363
mov esi, dword [ebp - 0x64]
cmp esi, 0x400
jg 0x6d8f4208
push esi
call fcn.6d900540
add esp, 4
test al, al
je 0x6d8f4208
mov eax, esi
call fcn.6d8fd3e0
mov eax, esp
jmp 0x6d8f4211
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x6d8f4201
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x6d8f437c
push esi
lea ecx, [ebp - 0x74]
call fcn.6d8f3720
push 3
push esi
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.6d8f2340
mov esi, eax
cmp esi, edi
je 0x6d8f4363
push str.CLSID_
lea edx, [ebp + 0x34]
push 0x80
push edx
call fcn.6d8f2470
push esi
lea eax, [ebp + 0x34]
push 0x80
push eax
call fcn.6d8f26a0
push str.Required_Categories
lea ecx, [ebp + 0x34]
push 0x80
push ecx
call fcn.6d8f26a0
add esp, 0x24
push 0x20019
lea edx, [ebp + 0x34]
push edx
push SysReAllocString
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x80], SysReAllocString
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
call fcn.6d8f2ae0
test eax, eax
jne 0x6d8f42ca
mov ecx, dword [ebp - 0x70]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x70]
mov ebx, eax
call fcn.6d8f2a00
cmp ebx, edi
jne 0x6d8f42ca
cmp dword [ebp - 0x64], edi
jne 0x6d8f42ca
lea edx, [ebp + 0x34]
push edx
lea ecx, [ebp - 0x80]
call fcn.6d8f2980
push str.CLSID_
lea eax, [ebp + 0x34]
push 0x80
push eax
call fcn.6d8f2470
push esi
lea ecx, [ebp + 0x34]
push 0x80
push ecx
call fcn.6d8f26a0
push str.Implemented_Categories
lea edx, [ebp + 0x34]
push 0x80
push edx
call fcn.6d8f26a0
add esp, 0x24
push 0x20019
lea eax, [ebp + 0x34]
push eax
push SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.6d8f2ae0
test eax, eax
jne 0x6d8f4353
mov edx, dword [ebp - 0x70]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x64]
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.6d8f2a00
cmp esi, edi
jne 0x6d8f4353
cmp dword [ebp - 0x64], edi
jne 0x6d8f4353
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x80]
call fcn.6d8f2980
lea ecx, [ebp - 0x70]
call fcn.6d8f3430
lea ecx, [ebp - 0x80]
call fcn.6d8f3430
lea ecx, [ebp - 0x74]
call fcn.6d8f3230
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x6d8f437a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb4]
xor ecx, ebp
call fcn.6d8fca24
lea esp, [ebp + 0xb8]
pop ebp
ret 0xc