Function at 0x404ce0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b20
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x4a2040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x290], 0
xor eax, eax
mov dword [ebp - 0x28c], 7
movups xmmword [ebp - 0x2a0], xmm0
mov word [ebp - 0x2a0], ax
mov ecx, 0x4a2c70
mov dword [ebp - 4], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404d53
sub ecx, edx
lea eax, [ecx + 0x4a2c70]
push eax
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.0040c430
cmp dword [ebp - 0x28c], 7
lea eax, [ebp - 0x2a0]
push str._game_tf__autoconfig__secure__noborder__novid__windowed__console__dxlevel_90__steam
cmova eax, dword [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x288]
push str.__s___s
push eax
call fcn.0040c680
add esp, 0x10
push 0
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [ebp - 0x28c], 7
lea ecx, [ebp - 0x2a0]
mov edi, eax
cmova ecx, dword [ebp - 0x2a0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404e68
cmp dword [ebp - 0x28c], 7
lea eax, [ebp - 0x2a0]
push 1
cmova eax, dword [ebp - 0x2a0]
push 0
push str._game_tf__autoconfig__secure__noborder__novid__windowed__console__dxlevel_90__steam
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x404e14
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Opening_Team_Fortress_2
call fcn.0040bd00
jmp 0x404e52
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_launching_Team_Fortress_2
call fcn.0040bd00
push 0x40bf20
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_code:
mov esi, eax
call fcn.0040bd00
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x40bf20
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404e85
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.File_not_found_at_the_specified_path.
call fcn.0040bd00
push 0x40bf20
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x28c]
cmp ecx, 7
jbe 0x404ec7
mov edx, dword [ebp - 0x2a0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404ebd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404ebd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045476e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00454557
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret