Function at 0x404b00
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x416030]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, edx
cmp edi, ebp
mov esi, ecx
mov dword [esp + 0x18], ebp
je 0x404df8
mov eax, dword [esi]
cmp eax, dword [0x4106b4]
jne 0x404b59
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4106b8]
jne 0x404b59
mov edx, dword [esi + 8]
cmp edx, dword [0x4106bc]
jne 0x404b59
mov eax, dword [esi + 0xc]
cmp eax, dword [0x4106c0]
je 0x404df8
lea ecx, [esp + 0x18]
push ecx
push 0x410a54
push 1
push ebp
push 0x410694
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x404b8e
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x404df8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x404df8
cmp dword [edi], ebp
mov ebx, edi
je 0x404c18
jmp 0x404ba0
cmp dword [esp + 0x1c4], ebp
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 1
push esi
push eax
je 0x404c02
cmp dword [ebx], 1
jne 0x404be0
mov eax, dword [ecx + 0x14]
jmp 0x404be3
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
cmp edi, ebp
jge 0x404c11
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x404bfb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x404dfa
cmp dword [ebx], 1
jne 0x404c0c
mov eax, dword [ecx + 0x18]
jmp 0x404c0f
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
cmp dword [ebx], ebp
jne 0x404ba0
cmp dword [esp + 0x1c4], ebp
jne 0x404de8
push 0x40
lea eax, [esp + 0x13c]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x41600c]
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push str.CLSID_
lea ecx, [esp + 0x3c]
push 0x80
push ecx
mov dword [esp + 0x30], ebp
call edi
push eax
call fcn.00404e50
lea eax, [esp + 0x148]
lea ecx, [esp + 0x48]
call fcn.00404f10
mov ebx, dword [sym.imp.MSVCR80.dll_wcscat_s]
push str.Required_Categories
lea edx, [esp + 0x4c]
push 0x80
push edx
call ebx
push eax
call fcn.00404e50
add esp, 0x20
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebp
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push SysReAllocStringLen
call ebp
test eax, eax
jne 0x404d10
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x18]
call fcn.00404f30
test eax, eax
jne 0x404d10
push eax
mov ecx, dword [esp + 0x18]
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [esp + 0x1c], eax
call fcn.00404f50
cmp dword [esp + 0x1c], 0
jne 0x404d10
cmp dword [esp + 0x20], 0
jne 0x404d10
lea edx, [esp + 0x38]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [esp + 0x3c]
push 0x80
push eax
call edi
push eax
call fcn.00404e50
lea eax, [esp + 0x148]
lea ecx, [esp + 0x48]
call fcn.00404f10
push str.Implemented_Categories
lea ecx, [esp + 0x4c]
push 0x80
push ecx
call ebx
push eax
call fcn.00404e50
add esp, 0x20
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
lea eax, [esp + 0x44]
push eax
push SysReAllocStringLen
mov dword [esp + 0x30], 0
call ebp
test eax, eax
jne 0x404dc2
lea ecx, [esp + 0x1c]
push ecx
lea esi, [esp + 0x18]
call fcn.00404f30
test eax, eax
jne 0x404dc2
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x3c]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
call fcn.00404f50
test edi, edi
jne 0x404dc2
cmp dword [esp + 0x20], edi
jne 0x404dc2
lea ecx, [esp + 0x38]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [esp + 0x14], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x404dd6
mov edx, dword [esp + 0x14]
push edx
call esi
push SysReAllocStringLen
call esi
lea esi, [esp + 0x24]
call fcn.00404e20
xor ebp, ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x404df8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d51a
add esp, 0x1b0
ret 4