Function at 0x401ee9
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4af4a8
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 [0x4ff3c0]
mov dword [ebp - 0x10], esi
push SysStringLen
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
jne 0x401f64
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_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 [0x4ff3bc]
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 [0x4ff3b8]
push SysReAllocStringLen
call ebx
cmp eax, esi
jne 0x402132
push str.Tim_Protocol
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_2
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_3
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 [0x4ff3b0]
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 [0x4ff3ac]
push dword [ebp - 0x14]
call ebx
cmp eax, esi
jne 0x40204d
lea eax, [ebp - 0x18]
push 0x4c3f18
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_operator_3
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 [0x4ff3a8]
push dword [ebp - 0x14]
call ebx
cmp eax, esi
jne 0x402111
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 [0x4ff3a4]
push dword [ebp - 0x2c]
call ebx
cmp eax, esi
jne 0x402108
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 [0x4ff3a0]
push dword [ebp - 0x28]
call ebx
cmp eax, esi
jne 0x4020ff
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_4
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