Function at 0x406560
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x41eb47
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x432ed8]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432ed8]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1cc]
mov ebp, dword [esp + 0x1d0]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c4], 1
cmp ebp, edi
je 0x406848
mov eax, dword [esi]
cmp eax, dword [0x4273c0]
jne 0x4065f1
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4273c4]
jne 0x4065f1
mov edx, dword [esi + 8]
cmp edx, dword [0x4273c8]
jne 0x4065f1
mov eax, dword [esi + 0xc]
cmp eax, dword [0x4273cc]
je 0x406848
lea ecx, [esp + 0x14]
push ecx
push 0x423ca0
push 1
push edi
push 0x4273e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x406848
cmp dword [ebp], edi
mov ebx, dword [esp + 0x1d4]
je 0x406687
lea ecx, [ecx]
cmp ebx, edi
mov eax, dword [ebp + 4]
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x28]
push edx
push 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push esi
push eax
je 0x40666f
cmp dword [ebp], 1
jne 0x40665c
mov eax, dword [ecx + 0x14]
jmp 0x40665f
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
jl 0x406888
xor edi, edi
jmp 0x40667f
cmp dword [ebp], 1
jne 0x40667a
mov eax, dword [ecx + 0x18]
jmp 0x40667d
mov eax, dword [ecx + 0x20]
call eax
add ebp, 8
cmp dword [ebp], edi
jne 0x406620
cmp ebx, edi
jne 0x406848
push 0x40
lea ecx, [esp + 0x13c]
push ecx
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x432ed0]
mov dword [esp + 0x24], edi
mov byte [esp + 0x1c4], 2
push str.CLSID_
lea edx, [esp + 0x3c]
push 0x80
push edx
call fcn.00401370
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x48]
push 0x80
push ecx
call fcn.00401390
push str.Required_Categories
lea edx, [esp + 0x54]
push 0x80
push edx
call fcn.00401390
add esp, 0x24
mov dword [esp + 0x20], VariantInit
mov bl, 3
mov byte [esp + 0x1c4], bl
mov dword [esp + 0x18], edi
mov byte [esp + 0x1c4], 4
push 0x20019
lea eax, [esp + 0x3c]
push eax
push SysReAllocString
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], edi
call fcn.00401de0
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
jne 0x40677e
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
push edx
call edi
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00401dc0
test esi, esi
jne 0x40677e
cmp dword [esp + 0x1c], esi
jne 0x40677e
lea eax, [esp + 0x38]
push eax
push SysReAllocString
call ebp
push str.CLSID_
lea ecx, [esp + 0x3c]
push 0x80
push ecx
call fcn.00401370
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x48]
push 0x80
push eax
call fcn.00401390
push 0x423c34
lea ecx, [esp + 0x54]
push 0x80
push ecx
call fcn.00401390
add esp, 0x24
push 0x20019
lea edx, [esp + 0x3c]
push edx
push SysReAllocString
lea ecx, [esp + 0x24]
call fcn.00401de0
test eax, eax
jne 0x406816
push eax
mov ecx, dword [esp + 0x1c]
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
push ecx
call edi
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00401dc0
test esi, esi
jne 0x406816
cmp dword [esp + 0x1c], esi
jne 0x406816
lea edx, [esp + 0x38]
push edx
push SysReAllocString
call ebp
mov byte [esp + 0x1c4], bl
lea ecx, [esp + 0x18]
call fcn.00404360
mov byte [esp + 0x1c4], 2
lea ecx, [esp + 0x20]
call fcn.00404360
mov byte [esp + 0x1c4], 1
lea ecx, [esp + 0x24]
call fcn.00402b20
mov dword [esp + 0x1c4], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00404880
xor eax, eax
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.00416d51
add esp, 0x1b4
ret 0xc
mov dword [esp + 0x1c4], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00404880
mov eax, edi
jmp 0x40685e