Function at 0x4056a0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x418020]
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 0x405998
mov eax, dword [esi]
cmp eax, dword [0x411570]
jne 0x4056f9
mov ecx, dword [esi + 4]
cmp ecx, dword [0x411574]
jne 0x4056f9
mov edx, dword [esi + 8]
cmp edx, dword [0x411578]
jne 0x4056f9
mov eax, dword [esi + 0xc]
cmp eax, dword [0x41157c]
je 0x405998
lea ecx, [esp + 0x18]
push ecx
push 0x411a48
push 1
push ebp
push 0x411550
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40572e
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405998
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x405998
cmp dword [edi], ebp
mov ebx, edi
je 0x4057b8
jmp 0x405740
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 0x4057a2
cmp dword [ebx], 1
jne 0x405780
mov eax, dword [ecx + 0x14]
jmp 0x405783
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
cmp edi, ebp
jge 0x4057b1
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40579b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x40599a
cmp dword [ebx], 1
jne 0x4057ac
mov eax, dword [ecx + 0x18]
jmp 0x4057af
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
cmp dword [ebx], ebp
jne 0x405740
cmp dword [esp + 0x1c4], ebp
jne 0x405988
push 0x40
lea eax, [esp + 0x13c]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [section..data]
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.004059f0
lea eax, [esp + 0x148]
lea ecx, [esp + 0x48]
call fcn.00405ab0
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.004059f0
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 SysReAllocString
call ebp
test eax, eax
jne 0x4058b0
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x18]
call fcn.00405ad0
test eax, eax
jne 0x4058b0
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.00405af0
cmp dword [esp + 0x1c], 0
jne 0x4058b0
cmp dword [esp + 0x20], 0
jne 0x4058b0
lea edx, [esp + 0x38]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [esp + 0x3c]
push 0x80
push eax
call edi
push eax
call fcn.004059f0
lea eax, [esp + 0x148]
lea ecx, [esp + 0x48]
call fcn.00405ab0
push str.Implemented_Categories
lea ecx, [esp + 0x4c]
push 0x80
push ecx
call ebx
push eax
call fcn.004059f0
add esp, 0x20
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
lea eax, [esp + 0x44]
push eax
push SysReAllocString
mov dword [esp + 0x30], 0
call ebp
test eax, eax
jne 0x405962
lea ecx, [esp + 0x1c]
push ecx
lea esi, [esp + 0x18]
call fcn.00405ad0
test eax, eax
jne 0x405962
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.00405af0
test edi, edi
jne 0x405962
cmp dword [esp + 0x20], edi
jne 0x405962
lea ecx, [esp + 0x38]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [esp + 0x14], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405976
mov edx, dword [esp + 0x14]
push edx
call esi
push SysReAllocString
call esi
lea esi, [esp + 0x24]
call fcn.004059c0
xor ebp, ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405998
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.0040e836
add esp, 0x1b0
ret 4