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

Disassembly:
mov eax, 0x4b8411
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x170
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], edi
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
mov esi, 0x104
lea ecx, [ebp - 0x2c]
push esi
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x14], eax
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
push esi
push dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xb0]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edi, dword [edi]
push esi
push esi
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, edi
call dword [eax + 0xac]
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
push esi
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::ReleaseBuffer
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
mov ax, word [eax + 0xd8]
cmp ax, 2
jne 0x456417
push str.WhatEverCmd
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::operator
mov dword [ebp - 0x10], ebx
jmp 0x45642b
push 0x4c3dbc
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::operator
mov dword [ebp - 0x10], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0x4c3dbc
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4c3dbc
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x10]
mov byte [ebp - 4], 5
push 1
push 1
call fcn.00456cfd
push eax
call fcn.00456ced
push eax
call fcn.00456cdd
push eax
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x58]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 3
call dword [sym.imp.BasicCtrlDll.dll_int___cdecl_InitBugReport_class_CString__class_CString__class_CString__class_CString__class_CString__int__int__unsigned_long_int__int__int__int__class_CString__class_CString_]
add esp, 0x34
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
cmp word [eax + 0xd8], bx
jne 0x4564f7
push str._r_n_Platform
call fcn.0040befa
pop ecx
xor esi, esi
jmp 0x456c64
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString_4
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd8]
push eax
lea eax, [ebp - 0x60]
push str.SOFTWARETENCENTPLATFORM_TYPE_LIST_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp - 0x60]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4565d8
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
push esi
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [eax - 8]
push eax
push 1
push ebx
push str.TypePath
push dword [ebp - 0x5c]
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], 0xd
push dword [eax - 8]
push eax
push 1
push ebx
push str.TypeName
push dword [ebp - 0x5c]
call esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x4c]
mov esi, str.SOFTWARETENCENTPLATFORM_CLSID_LIST
push eax
push 0xf003f
push ebx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 0x18], ebx
jne 0x4566a1
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x4c]
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 - 0x17c]
push ecx
push ebx
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0x100
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
jne 0x456724
lea eax, [ebp - 0x17c]
push 0xffffffffffffffff
push eax
call fcn.00456d0c
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xe
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x45666a
lea eax, [ebp - 0x7c]
lea ecx, [edi + 0x300]
push eax
call fcn.0045793f
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
inc dword [ebp - 0x20]
mov dword [ebp - 0x10], 0x100
mov byte [ebp - 4], 0xb
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x456632
jmp 0x45671b
lea eax, [ebp - 0x4c]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
je 0x456724
push esi
push 0x4fc720
call fcn.0040befa
pop ecx
lea eax, [ebp - 0x14]
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_4
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xf
push 0x4fc710
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0040befa
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x18], ebx
jne 0x456898
push 0x4fc6e0
call fcn.0040befa
pop ecx
mov ecx, edi
call fcn.00457053
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CStringArray::CStringArray
push str.DA9916AC_F2E9_4c50_95B7_2EED08CD1D0A
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.657DA82D_0659_42a2_87B7_66E100E5E6EB
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.E19BDCB0_15B8_4e06_A01B_2C56F3EA6511
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.6AB8D027_CE95_4ced_B5D0_076E2D90C44F
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.80629D78_C717_41fb_8B67_929FA63BA923
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.4B34393B_7422_4eb6_8EAF_2AE0DC2077C1
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.F77CE52C_FDD7_4487_9EE1_ACC80BAAB3CC
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.E67EFC33_6FC0_430c_8440_972A291FBD8A
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.8E7C0645_2A15_4996_8099_C08D653EC5CC
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.2D616D8F_F1BA_43a1_BEF0_E2A82A0FBD56
lea ecx, [ebp - 0x40]
push dword [ebp - 0x38]
call sub.MFC42.DLL_CStringArray::SetAtGrow
xor esi, esi
cmp dword [ebp - 0x38], ebx
jle 0x45688c
lea eax, [ebp - 0x14]
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.00456ca4
mov ecx, eax
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::AllocSysString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x456882
lea eax, [ebp - 0x54]
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.00456ca4
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 - 0x4c]
mov byte [ebp - 4], 0x12
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
neg eax
sbb al, al
lea ecx, [ebp - 0x54]
inc al
mov byte [ebp - 4], 0x10
mov byte [ebp - 0x25], al
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x25], bl
je 0x456882
lea eax, [ebp - 0x7c]
lea ecx, [edi + 0x300]
push eax
call fcn.0045793f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 0x38]
jl 0x4567ed
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.004543b2
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCRT.dll___p___argc]
cmp dword [eax], ebx
jle 0x456ae5
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 0x4568d4
cmp al, 0x2f
jne 0x456a76
inc esi
push str.Embedding
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x456a6c
push str.Automation
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x456a6c
push str.RegServer
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x45691f
mov dword [ebp - 0x24], 1
jmp 0x456a76
push esi
call sub.MSVCRT.dll_strlen
pop ecx
cmp eax, 0x28
push esi
jbe 0x4569a7
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x54]
push 5
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::Left
push 5
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::Delete
push str.guid:
push dword [ebp - 0x54]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x45698a
lea ecx, [ebp - 0x20]
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 0x45698a
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
jmp 0x456a76
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x18]
push 9
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::Left
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.TDbgHWnd:
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x16
call esi
pop ecx
test eax, eax
pop ecx
jne 0x456a11
push 9
push ebx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Delete
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
je 0x4569fc
push eax
call dword [sym.imp.MSVCRT.dll_atol]
pop ecx
mov dword [edi + 0x364], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
jmp 0x45699d
lea eax, [ebp - 0x64]
push 0xc
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
push str.SessionType:
push dword [ebp - 0x18]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x4569fc
push 0xc
push ebx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Delete
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
je 0x4569fc
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov word [edi + 0x328], ax
jmp 0x4569fc
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 0x4568b8
cmp dword [ebp - 0x24], ebx
je 0x456ae5
xor esi, esi
cmp dword [edi + 0x308], ebx
jle 0x456ac4
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
mov ecx, 0x501788
add eax, dword [edi + 0x304]
push eax
call fcn.00467b13
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
add dword [ebp - 0x10], 0x10
inc esi
cmp esi, dword [edi + 0x308]
jl 0x456a9c
push ebx
push ebx
push 0x4cf3a8
push dword [edi + 0x6c]
call sub.MFC42.DLL_AfxOleRegisterTypeLib
push 0x4fc4ec
call fcn.0040befa
pop ecx
xor esi, esi
jmp 0x456c58
cmp dword [edi + 0x314], ebx
je 0x456af9
cmp dword [ebp - 0x14], ebx
jne 0x456af9
push str._r_n_ole_server
jmp 0x456ad8
push ebx
push ebx
push 0x4cf3a8
push dword [edi + 0x6c]
call sub.MFC42.DLL_AfxOleRegisterTypeLib
push 0x4c3c20
mov ecx, edi
call sub.MFC42.DLL_CCmdTarget::GetInterface
mov dword [0x501760], eax
mov eax, dword [0x50175c]
cmp eax, ebx
jne 0x456b29
push str._r_n_g_pQQCreate
jmp 0x456ad8
mov edx, dword [eax]
lea ecx, [edi + 0xd4]
push ecx
push 0x4c3bc8
push eax
call dword [edx + 0xc]
test eax, eax
je 0x456b46
push 0x4fc46c
jmp 0x456ad8
mov dword [ebp - 0x50], ebx
mov eax, dword [0x50175c]
lea edx, [ebp - 0x50]
mov esi, 0x4cf398
push edx
mov ecx, dword [eax]
push esi
push eax
mov byte [ebp - 4], 0x18
call dword [ecx + 0xc]
test eax, eax
je 0x456b73
push 0x4fc440
call fcn.0040befa
pop ecx
jmp 0x456b90
mov eax, dword [edi + 0xd4]
push dword [ebp - 0x50]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x50]
mov ecx, 0x501788
call fcn.00467b28
cmp dword [edi + 0x314], ebx
jne 0x456bf5
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [edi + 0xda]
push eax
push 0x4cf388
push 4
push ebx
push 0x4cf470
call esi
cmp eax, ebx
jge 0x456bf5
push 0x4fc410
call fcn.0040befa
pop ecx
mov ecx, edi
call fcn.00457053
lea eax, [edi + 0xda]
push eax
push 0x4cf388
push 4
push ebx
push 0x4cf470
call esi
cmp eax, ebx
jge 0x456bf5
push 0x4fc3cc
call fcn.0040befa
pop ecx
mov dword [edi + 0xda], ebx
push 0x64
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x64], eax
cmp eax, ebx
mov byte [ebp - 4], 0x19
je 0x456c12
mov ecx, eax
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CTimerEvent::constructor_void_]
jmp 0x456c14
xor eax, eax
lea esi, [edi + 0x32c]
push 0x456d6a
mov byte [ebp - 4], 0x18
push edi
mov ecx, eax
mov dword [esi], eax
call fcn.004579e9
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 - 0x50]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x456c55
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret