Function at 0x407ff6
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
mov eax, 0x4a4ae1
call fcn.0044c320
sub esp, 0x160
push ebx
push edi
mov edi, ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x407887
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
xor ebx, ebx
mov ax, word [eax + 0xd8]
cmp ax, bx
jne 0x408045
push str._r_n_Platform
call fcn.004087f9
pop ecx
xor eax, eax
jmp 0x4087b2
push esi
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString_5
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd8]
push eax
lea eax, [ebp - 0x4c]
push str.SOFTWARETENCENTPLATFORM_TYPE_LIST_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x5c]
mov esi, SysStringLen
mov dword [ebp - 0x5c], ebx
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp - 0x4c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x408130
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_5
mov eax, 0x104
lea ecx, [ebp - 0x14]
push eax
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [eax - 8]
push eax
push 1
push ebx
push str.TypePath
push dword [ebp - 0x50]
call esi
lea eax, [edi + 0x1fc]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
push dword [eax - 8]
push eax
push 1
push ebx
push str.TypeName
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov esi, SysStringLen
lea eax, [ebp - 0x48]
push eax
push 0xf003f
push ebx
push str.SOFTWARETENCENTPLATFORM_CLSID_LIST
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jne 0x4081f3
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
push ecx
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
lea ecx, [ebp - 0x10]
push ebx
push ecx
lea ecx, [ebp - 0x16c]
push ecx
push ebx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0x100
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x408275
lea eax, [ebp - 0x16c]
push 0xffffffffffffffff
push eax
call fcn.004089e8
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x4081bd
lea eax, [ebp - 0x6c]
lea ecx, [edi + 0x300]
push eax
call fcn.00408eaf
inc dword [ebp - 0x14]
push dword [ebp - 0x20]
inc dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x100
mov byte [ebp - 4], bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x408185
jmp 0x40826c
lea eax, [ebp - 0x48]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWARETENCENTPLATFORM_CLSID_LIST
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
je 0x408275
push esi
push 0x4eb598
call fcn.004087f9
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push ebx
push ebx
push eax
push 0x400
push esi
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_5
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push 0x4eb588
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
call fcn.004087f9
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x14], ebx
jne 0x4083e8
push 0x4eb558
call fcn.004087f9
pop ecx
mov ecx, edi
call fcn.00408d19
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CStringArray::CStringArray
push str.DA9916AC_F2E9_4c50_95B7_2EED08CD1D0A
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.657DA82D_0659_42a2_87B7_66E100E5E6EB
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.E19BDCB0_15B8_4e06_A01B_2C56F3EA6511
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.6AB8D027_CE95_4ced_B5D0_076E2D90C44F
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.80629D78_C717_41fb_8B67_929FA63BA923
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.4B34393B_7422_4eb6_8EAF_2AE0DC2077C1
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.F77CE52C_FDD7_4487_9EE1_ACC80BAAB3CC
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.E67EFC33_6FC0_430c_8440_972A291FBD8A
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.8E7C0645_2A15_4996_8099_C08D653EC5CC
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
push str.2D616D8F_F1BA_43a1_BEF0_E2A82A0FBD56
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x34]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
xor esi, esi
cmp dword [ebp - 0x34], ebx
jle 0x4083dd
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.004087c0
mov ecx, eax
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::AllocSysString
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x4083d3
lea eax, [ebp - 0x44]
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.004087c0
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x48]
mov byte [ebp - 4], 7
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
neg eax
sbb al, al
lea ecx, [ebp - 0x44]
inc al
mov byte [ebp - 4], 5
mov byte [ebp - 0x21], al
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x21], bl
je 0x4083d3
lea eax, [ebp - 0x6c]
lea ecx, [edi + 0x300]
push eax
call fcn.00408eaf
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x40833e
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.0044bda0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCRT.dll___p___argc]
cmp dword [eax], ebx
jle 0x408631
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov esi, dword [eax + ecx*4]
mov al, byte [esi]
cmp al, 0x2d
je 0x408424
cmp al, 0x2f
jne 0x4085c4
inc esi
push str.Embedding
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x4085ba
push str.Automation
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x4085ba
push str.RegServer
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x40846f
mov dword [ebp - 0x28], 1
jmp 0x4085c4
push esi
call sub.MSVCRT.dll_strlen
pop ecx
cmp eax, 0x28
push esi
jbe 0x4084f6
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x44]
push 5
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::Left
push 5
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::Delete
push str.guid:
push dword [ebp - 0x44]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x4084da
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::AllocSysString
lea ecx, [edi + 0x318]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x4084da
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
jmp 0x4085c4
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x14]
push 9
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::Left
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.TDbgHWnd:
push dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
call esi
pop ecx
test eax, eax
pop ecx
jne 0x40855f
push 9
push ebx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Delete
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
je 0x40854b
push eax
call dword [sym.imp.MSVCRT.dll_atol]
pop ecx
mov dword [edi + 0x364], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
jmp 0x4084ec
lea eax, [ebp - 0x54]
push 0xc
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
push str.SessionType:
push dword [ebp - 0x14]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x40854b
push 0xc
push ebx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Delete
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
je 0x40854b
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov word [edi + 0x328], ax
jmp 0x40854b
mov dword [edi + 0x314], 1
inc dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll___p___argc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jl 0x408408
cmp dword [ebp - 0x28], ebx
je 0x408631
xor esi, esi
cmp dword [edi + 0x308], ebx
jle 0x408612
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
mov ecx, 0x4f0df0
add eax, dword [edi + 0x304]
push eax
call fcn.00402d25
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
add dword [ebp - 0x10], 0x10
inc esi
cmp esi, dword [edi + 0x308]
jl 0x4085ea
push ebx
push ebx
push 0x4b95c0
push dword [edi + 0x6c]
call sub.MFC42.DLL_AfxOleRegisterTypeLib
push 0x4eb364
call fcn.004087f9
pop ecx
jmp 0x4087a3
cmp dword [edi + 0x314], ebx
je 0x408645
cmp dword [ebp - 0x20], ebx
jne 0x408645
push str._r_n_ole_server
jmp 0x408626
push ebx
push ebx
push 0x4b95c0
push dword [edi + 0x6c]
call sub.MFC42.DLL_AfxOleRegisterTypeLib
push 0x4baa98
mov ecx, edi
call sub.MFC42.DLL_CCmdTarget::GetInterface
mov dword [0x4f0e4c], eax
mov eax, dword [0x4f0e48]
cmp eax, ebx
jne 0x408675
push str._r_n_g_pQQCreate
jmp 0x408626
mov edx, dword [eax]
lea ecx, [edi + 0xd4]
push ecx
push 0x4b8ba0
push eax
call dword [edx + 0xc]
test eax, eax
je 0x408692
push 0x4eb2e4
jmp 0x408626
mov dword [ebp - 0x40], ebx
mov eax, dword [0x4f0e48]
lea edx, [ebp - 0x40]
mov esi, 0x4b95b0
push edx
mov ecx, dword [eax]
push esi
push eax
mov byte [ebp - 4], 0xd
call dword [ecx + 0xc]
test eax, eax
je 0x4086bf
push 0x4eb2b8
call fcn.004087f9
pop ecx
jmp 0x4086dc
mov eax, dword [edi + 0xd4]
push dword [ebp - 0x40]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x40]
mov ecx, 0x4f0df0
call fcn.00402d3a
cmp dword [edi + 0x314], ebx
jne 0x408741
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [edi + 0xda]
push eax
push 0x4b95a0
push 4
push ebx
push 0x4b9668
call esi
cmp eax, ebx
jge 0x408741
push 0x4eb288
call fcn.004087f9
pop ecx
mov ecx, edi
call fcn.00408d19
lea eax, [edi + 0xda]
push eax
push 0x4b95a0
push 4
push ebx
push 0x4b9668
call esi
cmp eax, ebx
jge 0x408741
push 0x4eb244
call fcn.004087f9
pop ecx
mov dword [edi + 0xda], ebx
push 0x64
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x54], eax
cmp eax, ebx
mov byte [ebp - 4], 0xe
je 0x40875e
mov ecx, eax
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CTimerEvent::constructor_void_]
jmp 0x408760
xor eax, eax
lea esi, [edi + 0x32c]
push 0x408a30
mov byte [ebp - 4], 0xd
push edi
mov ecx, eax
mov dword [esi], eax
call fcn.00408f59
mov ecx, dword [esi]
push 0x3e8
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CTimerEvent::SetInterval_unsigned_int_]
mov ecx, dword [esi]
push 1
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CTimerEvent::SetEnabled_int_]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4087a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret