Function at 0x46b550
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4ea4b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
xor ebx, ebx
mov byte [eax + 0x14], bl
call sub.MFC42.DLL_COleObjectFactory::RegisterAll
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
push SysReAllocString
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x556570
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x84], ebx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.CLSIDEBEB87A6_E151_4054_AB45_A6E094C5334BLocalServer32_
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x84], 0xffffffff
call fcn.0046d3d0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x50]
mov dword [esp + 0x74], 1
push eax
push 0x20006
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x2c]
mov byte [esp + 0x74], 2
push edx
push str.QMDispatch.QMLibrary
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push 0x51f848
push 1
push ebx
push ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x46b719
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
cmp eax, ebx
je 0x46b64d
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0x51f838
push eax
call dword [edx]
lea edx, [esp + 0x1c]
mov byte [esp + 0x74], 3
push edx
call sub.MFC42.DLL_AfxVariantInit
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
mov byte [esp + 0x74], 4
je 0x46b6e5
push 3
push 0x46b290
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_COleVariant::COleVariant_1
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push 0x400
lea edx, [esp + 0x1c]
push 1
mov dword [esp + 0x20], str.Initialize
mov ecx, dword [eax]
push edx
push 0x4f0900
push eax
mov byte [esp + 0x8c], 5
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x46b6c9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0043a410
lea edx, [esp + 0x3c]
mov esi, eax
push edx
mov byte [esp + 0x78], 4
call edi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46b6e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
cmp eax, ebx
je 0x46b6fb
mov dword [esp + 0x10], ebx
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x1c]
push eax
call edi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x74], 2
cmp eax, ebx
je 0x46b715
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jge 0x46b74c
push ebx
push ebx
lea edx, [esp + 0x20]
push str.CoreLibLogQMDispatchError
push edx
call fcn.0041e3a0
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x8c], 6
call fcn.00470300
add esp, 0x18
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 2
call fcn.00415612
mov eax, dword [esp + 0x10]
mov byte [esp + 0x74], 1
cmp eax, ebx
je 0x46b75f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046d550
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret