Function at 0x402ae0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4e725c
call fcn.00475fe0
sub esp, 0x34
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 - 0x24]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
dec eax
je 0x402cb3
dec eax
je 0x402c64
dec eax
je 0x402c12
dec eax
je 0x402bc0
dec eax
jne 0x402d05
push str..uip
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_2
push str.SUPERBAG.Package
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push str.SUPERBAG_Package
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x24]
push str.__146
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
jmp 0x402d00
push str..cfc
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_2
push str.CFC.Package
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push str.CFC_Package
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x24]
push str.__140
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
jmp 0x402d00
push str..eip
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_2
push str.EMOTION.Package
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push str.EMOTION_Package
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x24]
push str.__135
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
jmp 0x402d00
push str..cip
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_2
push str.SCENE.Package
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push str.SCENE_Package
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x24]
push str.__134
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
jmp 0x402d00
push str..kip
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_2
push str.SKIN.Package
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push str.SKIN_Package
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x24]
push str.__133
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x28]
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 - 0x28], esi
push dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
push SysReAllocStringLen
call edi
test eax, eax
jne 0x402d4e
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 - 0x28]
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 0x402e81
mov eax, dword [ebp - 0x1c]
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 - 0x28]
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 0x402dbc
mov eax, dword [ebp - 0x18]
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 - 0x28]
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 0x402e75
lea eax, [ebp - 0x28]
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 0x402e6c
lea eax, [ebp - 0x28]
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 0x402e63
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_4
push dword [ebp - 0x24]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xc
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 - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
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 - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
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