Function at 0x402666
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4b188c
call fcn.00458b70
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], str.Timwp.exe
push eax
lea eax, [ebp - 0x28]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
call fcn.0045842e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0045842e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0045842e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0045842e
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
dec eax
je 0x4027e0
dec eax
je 0x402791
dec eax
je 0x40273f
dec eax
jne 0x402832
push str..cfc
lea ecx, [ebp - 0x24]
call fcn.00458488
push str.CFC.Package
lea ecx, [ebp - 0x14]
call fcn.00458488
push str.CFC_Package
lea ecx, [ebp - 0x20]
call fcn.00458488
lea eax, [ebp - 0x28]
push str.__140
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.00458452
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
jmp 0x40282d
push str..eip
lea ecx, [ebp - 0x24]
call fcn.00458488
push str.EMOTION.Package
lea ecx, [ebp - 0x14]
call fcn.00458488
push str.EMOTION_Package
lea ecx, [ebp - 0x20]
call fcn.00458488
lea eax, [ebp - 0x28]
push str.__135
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.00458452
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
jmp 0x40282d
push str..cip
lea ecx, [ebp - 0x24]
call fcn.00458488
push str.SCENE.Package
lea ecx, [ebp - 0x14]
call fcn.00458488
push str.SCENE_Package
lea ecx, [ebp - 0x20]
call fcn.00458488
lea eax, [ebp - 0x28]
push str.__134
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00458452
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
jmp 0x40282d
push str..kip
lea ecx, [ebp - 0x24]
call fcn.00458488
push str.SKIN.Package
lea ecx, [ebp - 0x14]
call fcn.00458488
push str.SKIN_Package
lea ecx, [ebp - 0x20]
call fcn.00458488
lea eax, [ebp - 0x28]
push str.__133
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00458452
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
mov ebx, 0xf003f
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
push esi
push esi
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
mov dword [ebp - 0x10], esi
push SysReAllocStringLen
call edi
test eax, eax
jne 0x40287b
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp - 0x14]
push SysReAllocStringLen
call edi
cmp eax, esi
jne 0x4029ae
mov eax, dword [ebp - 0x20]
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push esi
push esi
push esi
push str.DefaultIcon
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4028e9
mov eax, dword [ebp - 0x1c]
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], esi
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push esi
push esi
push esi
push str.shell
push dword [ebp - 0x10]
call edi
cmp eax, esi
jne 0x4029a2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
push esi
push esi
push esi
push str.open
push dword [ebp - 0x38]
call edi
cmp eax, esi
jne 0x402999
lea eax, [ebp - 0x18]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp + 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push str.command
push dword [ebp - 0x34]
call edi
cmp eax, esi
jne 0x402990
lea ecx, [ebp - 0x30]
call fcn.0045842e
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
push str.__s_____1_
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x30]
add esp, 0xc
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret