Function at 0x6d516149
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0x140
mov eax, dword [0x6d51e944]
xor eax, ebp
mov dword [ebp + 0xbc], eax
mov eax, dword [ebp + 0xc8]
push ebx
push esi
mov esi, dword [ebp + 0xcc]
xor ebx, ebx
push edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
cmp esi, ebx
je 0x6d516415
push 0x6d51b170
push eax
call fcn.6d514857
pop ecx
pop ecx
test eax, eax
jne 0x6d516415
lea eax, [ebp - 0x5c]
push eax
push 0x6d51af58
push 1
push ebx
push 0x6d51b190
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x6d516408
mov eax, esi
mov dword [ebp - 0x58], eax
cmp dword [esi], ebx
jne 0x6d51622b
cmp dword [ebp + 0xd0], ebx
jne 0x6d516408
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x70], ebx
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
call fcn.6d514884
add esp, 0xc
test eax, eax
js 0x6d516400
mov esi, dword [ebp - 0x58]
cmp esi, 0x400
jg 0x6d516296
push esi
call fcn.6d514dbe
pop ecx
test al, al
je 0x6d516296
mov eax, esi
call fcn.6d518c10
mov eax, esp
jmp 0x6d51629f
mov eax, dword [ebp - 0x58]
mov esi, dword [eax + 4]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x60]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0xd0], ebx
je 0x6d516273
cmp dword [eax], 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push eax
jne 0x6d516256
call dword [ecx + 0x14]
jmp 0x6d516259
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x6d516286
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x6d51626c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x6d516417
cmp dword [eax], 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push eax
jne 0x6d516283
call dword [ecx + 0x18]
jmp 0x6d516286
call dword [ecx + 0x20]
add dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x58]
cmp dword [eax], ebx
jne 0x6d516228
jmp 0x6d5161c0
push esi
lea ecx, [ebp - 0x70]
call fcn.6d514faf
push 3
push esi
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.6d5193f2
mov dword [ebp - 0x60], eax
cmp eax, ebx
je 0x6d516400
push str.CLSID_
mov esi, 0x80
lea eax, [ebp + 0x3c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
push eax
call fcn.6d514939
push dword [ebp - 0x60]
mov edi, dword [sym.imp.MSVCR100.dll_strcat_s]
lea eax, [ebp + 0x3c]
push esi
push eax
call edi
push eax
call fcn.6d514939
push str.Required_Categories
lea eax, [ebp + 0x3c]
push esi
push eax
call edi
push eax
call fcn.6d514939
add esp, 0x30
push 0x20019
lea ecx, [ebp + 0x3c]
mov eax, SysReAllocString
push ecx
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x58], ebx
call fcn.6d5193f2
test eax, eax
jne 0x6d516365
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x74], eax
call fcn.6d514b0c
cmp dword [ebp - 0x74], ebx
jne 0x6d516365
cmp dword [ebp - 0x58], ebx
jne 0x6d516365
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x80]
call fcn.6d514a9d
push str.CLSID_
lea eax, [ebp + 0x3c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
push eax
call fcn.6d514939
push dword [ebp - 0x60]
lea eax, [ebp + 0x3c]
push esi
push eax
call edi
push eax
call fcn.6d514939
push str.Implemented_Categories
lea eax, [ebp + 0x3c]
push esi
push eax
call edi
push eax
call fcn.6d514939
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x3c]
push eax
push SysReAllocString
lea ecx, [ebp - 0x6c]
call fcn.6d5193f2
test eax, eax
jne 0x6d5163f0
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.6d514b0c
cmp esi, ebx
jne 0x6d5163f0
cmp dword [ebp - 0x58], ebx
jne 0x6d5163f0
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x80]
call fcn.6d514a9d
lea ecx, [ebp - 0x6c]
call fcn.6d514b0c
lea ecx, [ebp - 0x80]
call fcn.6d514b0c
lea ecx, [ebp - 0x70]
call fcn.6d514d33
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x6d516415
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
xor ecx, ebp
call fcn.6d5189ea
add ebp, 0xc0
leave
ret 0xc