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

Disassembly:
push ebp
lea ebp, [esp - 0x114]
sub esp, 0x114
push 0xffffffffffffffff
push 0x10150278
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x101a53c4]
xor eax, ebp
mov dword [ebp + 0x110], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x11c]
mov ebx, dword [ebp + 0x120]
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
cmp ebx, edi
je 0x10004f03
mov eax, dword [esi]
cmp eax, dword [0x1016c8b8]
jne 0x10004c78
mov ecx, dword [esi + 4]
cmp ecx, dword [0x1016c8bc]
jne 0x10004c78
mov edx, dword [esi + 8]
cmp edx, dword [0x1016c8c0]
jne 0x10004c78
mov eax, dword [esi + 0xc]
cmp eax, dword [0x1016c8c4]
je 0x10004f03
lea ecx, [ebp - 0x10]
push ecx
push 0x1015a3b4
push 1
push edi
push 0x1016c8c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x10004f03
cmp dword [ebx], edi
je 0x10004d0d
cmp dword [ebp + 0x124], edi
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [ebp], edx
mov ecx, dword [eax + 4]
mov dword [ebp + 4], ecx
mov edx, dword [eax + 8]
mov dword [ebp + 8], edx
mov eax, dword [eax + 0xc]
lea edx, [ebp]
push edx
push 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
push eax
je 0x10004cf5
cmp dword [ebx], 1
jne 0x10004cd4
mov eax, dword [ecx + 0x14]
jmp 0x10004cd7
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
jge 0x10004d04
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10003540
mov eax, edi
jmp 0x10004f14
cmp dword [ebx], 1
jne 0x10004cff
mov eax, dword [ecx + 0x18]
jmp 0x10004d02
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
xor edi, edi
cmp dword [ebx], edi
jne 0x10004c9b
cmp dword [ebp + 0x124], edi
jne 0x10004f03
push 0x40
lea ecx, [ebp + 0x10]
push ecx
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
lea edx, [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, 1
push 2
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001090
add esp, 0xc
test eax, eax
jl 0x10004ef7
mov esi, dword [ebp - 0x14]
cmp esi, 0x400
jg 0x10004d77
push esi
call fcn.100017a0
add esp, 4
test al, al
je 0x10004d77
mov eax, esi
call fcn.100f56f0
mov eax, esp
jmp 0x10004d80
push esi
lea ecx, [ebp - 0x1c]
call fcn.10001860
push edi
push esi
lea ecx, [ebp + 0x10]
push ecx
push eax
call fcn.10001100
mov esi, eax
cmp esi, edi
je 0x10004ef7
push 0x1015a3ac
lea edx, [ebp + 0x90]
push 0x80
push edx
call fcn.10001a30
push esi
lea eax, [ebp + 0x90]
push 0x80
push eax
call fcn.10001a80
push 0x1015a394
lea ecx, [ebp + 0x90]
push 0x80
push ecx
call fcn.10001a80
add esp, 0x24
mov dword [ebp - 0x20], SysReAllocStringLen
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
push 0x20019
lea edx, [ebp + 0x90]
push edx
push SysReAllocStringLen
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edi
call fcn.10001c60
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jne 0x10004e48
mov ecx, dword [ebp - 0x18]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push ecx
call ebx
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.10001c40
test edi, edi
jne 0x10004e48
cmp dword [ebp - 0x14], edi
jne 0x10004e48
lea edx, [ebp + 0x90]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x1015a3ac
lea eax, [ebp + 0x90]
push 0x80
push eax
call fcn.10001a30
push esi
lea ecx, [ebp + 0x90]
push 0x80
push ecx
call fcn.10001a80
push 0x1015a37c
lea edx, [ebp + 0x90]
push 0x80
push edx
call fcn.10001a80
add esp, 0x24
push 0x20019
lea eax, [ebp + 0x90]
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0x18]
call fcn.10001c60
test eax, eax
jne 0x10004edf
mov edx, dword [ebp - 0x18]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push eax
push eax
push edx
call ebx
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10001c40
test esi, esi
jne 0x10004edf
cmp dword [ebp - 0x14], esi
jne 0x10004edf
lea eax, [ebp + 0x90]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.100032c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.100032c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.10001730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10003540
xor eax, eax
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x110]
xor ecx, ebp
call fcn.100f5016
add ebp, 0x114
mov esp, ebp
pop ebp
ret 0xc