Function at 0x4029fb
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4b18c8
call fcn.00458b70
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push SysReAllocStringLen
call edi
cmp eax, ebx
jne 0x402be9
push esi
lea eax, [ebp + 8]
push str.Protocol
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], 1
push dword [eax - 8]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x10]
call esi
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
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 ebx
push str.URL_Protocol
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.DefaultIcon
push dword [ebp - 0x10]
call edi
cmp eax, ebx
jne 0x402b07
lea eax, [ebp - 0x18]
push 0x4c81b4
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 5
push dword [eax - 8]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x1c]
call esi
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 - 0x14]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.shell
push dword [ebp - 0x10]
call edi
cmp eax, ebx
jne 0x402bc8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.open
push dword [ebp - 0x2c]
call edi
cmp eax, ebx
jne 0x402bbf
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.command
push dword [ebp - 0x28]
call edi
cmp eax, ebx
jne 0x402bb6
lea ecx, [ebp - 0x24]
call fcn.0045842e
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 ebx
push ebx
push dword [ebp - 0x20]
call esi
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 - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret