Function at 0x100080e1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
mov esi, edx
push edi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], ebx
cmp esi, ebx
je 0x10008494
mov eax, 0x100245bc
call fcn.1000b42b
test eax, eax
jne 0x10008494
lea eax, [ebp - 0x128]
push eax
push 0x10027f80
push 1
push ebx
push 0x100245dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10008484
mov eax, esi
mov dword [ebp - 0x120], eax
cmp dword [esi], ebx
jne 0x100081d5
cmp dword [ebp + 8], ebx
jne 0x10008484
push 0x40
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x120]
inc eax
push ecx
mov dword [ebp - 0x120], eax
call fcn.10009cd9
pop ecx
test eax, eax
js 0x10008484
mov edi, dword [ebp - 0x120]
cmp edi, 0x400
jg 0x10008259
push edi
call fcn.10009d09
pop ecx
test al, al
je 0x10008259
mov eax, edi
call fcn.1001d9d0
mov eax, esp
jmp 0x10008266
mov eax, dword [ebp - 0x120]
mov esi, dword [eax + 4]
lea edi, [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x124]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 8], ebx
je 0x10008229
cmp dword [eax], 1
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax]
push eax
jne 0x10008209
call dword [ecx + 0x14]
jmp 0x1000820c
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x1000823f
mov eax, dword [ebp - 0x128]
cmp eax, ebx
je 0x10008222
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10008496
cmp dword [eax], 1
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax]
push eax
jne 0x1000823c
call dword [ecx + 0x18]
jmp 0x1000823f
call dword [ecx + 0x20]
add dword [ebp - 0x120], 8
mov eax, dword [ebp - 0x120]
cmp dword [eax], ebx
jne 0x100081cf
jmp 0x10008153
mov eax, edi
lea esi, [ebp - 0x124]
call fcn.10009d75
push 3
push edi
lea ecx, [ebp - 0x10c]
push ecx
mov esi, eax
call fcn.100096ca
mov dword [ebp - 0x138], eax
cmp eax, ebx
je 0x10008463
push str.CLSID_
mov esi, 0x80
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.1001820a
add esp, 0xc
push eax
call fcn.1000a228
pop ecx
push dword [ebp - 0x138]
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.1001a31a
add esp, 0xc
push eax
call fcn.1000a228
mov dword [esp], str.Required_Categories
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.1001a31a
add esp, 0xc
push eax
call fcn.1000a228
mov dword [esp], 0x20019
lea eax, [ebp - 0x8c]
push eax
push SysReAllocString
lea edi, [ebp - 0x134]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x120], ebx
call fcn.1000a34a
test eax, eax
jne 0x10008376
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, eax
cmp dword [ebp - 0x134], ebx
je 0x10008352
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
cmp edi, ebx
jne 0x10008376
cmp dword [ebp - 0x120], ebx
jne 0x10008376
lea eax, [ebp - 0x8c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.1001820a
add esp, 0xc
push eax
call fcn.1000a228
pop ecx
push dword [ebp - 0x138]
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.1001a31a
add esp, 0xc
push eax
call fcn.1000a228
mov dword [esp], str.Implemented_Categories
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.1001a31a
add esp, 0xc
push eax
call fcn.1000a228
mov dword [esp], 0x20019
lea eax, [ebp - 0x8c]
push eax
push SysReAllocString
lea edi, [ebp - 0x134]
call fcn.1000a34a
test eax, eax
jne 0x10008444
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
cmp dword [ebp - 0x134], ebx
je 0x10008426
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], ebx
cmp esi, ebx
jne 0x10008444
cmp dword [ebp - 0x120], ebx
jne 0x10008444
lea eax, [ebp - 0x8c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x134], ebx
je 0x10008458
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x124], ebx
je 0x10008484
mov eax, dword [ebp - 0x124]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x124], esi
call fcn.1001a512
pop ecx
cmp esi, ebx
jne 0x1000846b
mov eax, dword [ebp - 0x128]
cmp eax, ebx
je 0x10008494
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x144]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10017a76
leave
ret 4