Function at 0x401eec
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4be564
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x28
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x30]
xor esi, esi
push eax
push esi
push 0xf003f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
push esi
push esi
push dword [0x516bf0]
mov dword [ebp - 0x10], esi
push SysReAllocStringLen
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
jne 0x401f67
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.QQHelperDll.dll_class_CString___cdecl_ToolCommonPath::GetInstallFolder_void_]
pop ecx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], esi
push dword [eax - 8]
push eax
push 1
push esi
push dword [0x516bec]
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x516be8]
push SysReAllocStringLen
call ebx
cmp eax, esi
jne 0x402135
push str.Tim_Protocol
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x34]
push 1
pop ecx
push dword [eax - 8]
mov dword [ebp - 4], ecx
push eax
push ecx
push esi
push esi
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], str.Timwp.exe
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
push dword [eax - 8]
push eax
push 1
push esi
push dword [0x516be0]
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x516bdc]
push dword [ebp - 0x14]
call ebx
cmp eax, esi
jne 0x402050
lea eax, [ebp - 0x18]
push 0x4d5190
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 5
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x516bd8]
push dword [ebp - 0x14]
call ebx
cmp eax, esi
jne 0x402114
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], esi
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x516bd4]
push dword [ebp - 0x2c]
call ebx
cmp eax, esi
jne 0x40210b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [0x516bd0]
push dword [ebp - 0x28]
call ebx
cmp eax, esi
jne 0x402102
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_3
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push str.__s_____1_
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x24]
add esp, 0xc
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret