Function at 0x40a2f8
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x4209a0
call fcn.00417780
sub esp, 0x124
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov eax, dword [eax]
push edi
cmp dword [eax - 8], ebx
je 0x40a4c4
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a38d
push str.COMMERCE_QBOX
push esi
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
jne 0x40a34e
push 2
push esi
jmp 0x40a32a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
push eax
push ebx
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40a381
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40a4c4
mov dword [ebp - 0x14], ebx
push 0x20019
push str.SOFTWARETencentQQQBox
push SysStringLen
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0040a4ea
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov edx, dword [ebp - 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
mov esi, 0x104
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.Install
push edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a404
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x40a475
push esi
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push str.QBoxHDRoom.exe
jmp 0x40a489
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041738e
push str.HDRoom.exe
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp + 8]
push 5
push ebx
mov eax, dword [eax]
push eax
push dword [ebp - 0x10]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x14], ebx
je 0x40a4c4
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4