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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x124
mov eax, dword [0x1000d040]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp esi, ebx
mov dword [ebp + 0x6c], eax
push edi
mov dword [ebp - 0xac], ebx
je 0x10004a2b
mov ecx, dword [ebp + 0x78]
mov eax, 0x1000b2c0
call fcn.10001c26
test eax, eax
jne 0x10004a2b
lea eax, [ebp - 0xac]
push eax
push 0x1000b81c
push 1
push ebx
push 0x1000b2b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10004a1b
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp - 0xa8], eax
jne 0x10004834
cmp dword [ebp + 0x7c], ebx
jne 0x10004a1b
push 0x40
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x1000d078]
mov dword [ebp + 0x78], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x100048ab
push edi
call fcn.10001000
test al, al
pop ecx
je 0x100048ab
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.10009f10
mov eax, esp
jmp 0x100048b8
mov eax, dword [ebp - 0xa8]
cmp dword [ebp + 0x7c], ebx
mov esi, dword [eax + 4]
lea edi, [ebp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp + 0x5c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp + 0x78]
movsd dword es:[edi], dword [esi]
je 0x1000487f
cmp dword [eax], 1
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
push eax
jne 0x1000485f
call dword [ecx + 0x14]
jmp 0x10004862
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x10004895
mov eax, dword [ebp - 0xac]
cmp eax, ebx
je 0x10004878
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10004a2d
cmp dword [eax], 1
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
push eax
jne 0x10004892
call dword [ecx + 0x18]
jmp 0x10004895
call dword [ecx + 0x20]
add dword [ebp - 0xa8], 8
mov eax, dword [ebp - 0xa8]
cmp dword [eax], ebx
jne 0x1000482e
jmp 0x100047c4
mov eax, edi
lea esi, [ebp - 0xa8]
call fcn.10001a28
push dword [ebp + 0x78]
lea ecx, [ebp - 0xa4]
push edi
push ecx
mov esi, eax
call fcn.10001150
cmp eax, ebx
mov dword [ebp - 0xb0], eax
je 0x100049fa
push str.CLSID_
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0xb0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x24]
push eax
call esi
push str.Required_Categories
lea eax, [ebp - 0x24]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x24]
push eax
mov edi, SysReAllocString
push edi
lea eax, [ebp + 0x78]
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x7c], ebx
call fcn.1000138b
test eax, eax
jne 0x1000496b
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp + 0x78], ebx
mov dword [ebp - 0xb4], eax
je 0x10004953
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x78], ebx
cmp dword [ebp - 0xb4], ebx
jne 0x1000496b
cmp dword [ebp + 0x7c], ebx
jne 0x1000496b
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0xb0]
lea eax, [ebp - 0x24]
push eax
call esi
push 0x1000bc54
lea eax, [ebp - 0x24]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp + 0x78]
call fcn.1000138b
test eax, eax
jne 0x100049e5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp + 0x78], ebx
mov esi, eax
je 0x100049d1
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x78], ebx
cmp esi, ebx
jne 0x100049e5
cmp dword [ebp + 0x7c], ebx
jne 0x100049e5
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp + 0x78], ebx
je 0x100049f3
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa8], ebx
je 0x10004a1b
mov eax, dword [ebp - 0xa8]
mov esi, dword [eax]
push eax
mov dword [ebp - 0xa8], esi
call fcn.10008fa2
cmp esi, ebx
pop ecx
jne 0x10004a02
mov eax, dword [ebp - 0xac]
cmp eax, ebx
je 0x10004a2b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0xc0]
mov ecx, dword [ebp + 0x6c]
call fcn.10009226
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8