Function at 0x1401ef0
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Delete file
Get common file path
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x145b084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3b0], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [0x145beec], ax
call fcn.01401370
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, edi
call esi
call fcn.01401370
push str._steam
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str.cstrike
push str._game
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
call fcn.01401370
push 0
push str._nomaster
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push 0x144f58c
push 0x144f5a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
jne 0x1401fe1
call fcn.01401370
mov ecx, eax
push 0
push str._nomutex
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x1401fe1
push str.ValveHalfLifeLauncherMutex
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x3b0], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401fe1
cmp eax, 0x80
je 0x1401fe1
push str.Error
push str.Could_not_launch_game._nOnly_one_instance_of_this_game_can_be_run_at_a_time.
jmp 0x14028d8
call fcn.01401370
push 0
push str._soft
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
test eax, eax
jne 0x14028c4
call fcn.01401370
push 0
push str._software
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
test eax, eax
jne 0x14028c4
call fcn.01401370
push 0
push 0x144f62c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
test eax, eax
jne 0x14028c4
call fcn.01401370
push 0
push str._d3d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
test eax, eax
je 0x140207d
mov eax, 0x804
cmp word [0x145beec], ax
jne 0x140206e
push 0x144f630
push 0x144f730
jmp 0x14028d8
push str.Not_Supported_D3D_Direct3D__Render
push str.This_games_does_not_supporting_D3D_Direct3D_._nPlease_update_your_graphic_driver_to_latest_version_to_make_sure_game_works_correctly.
jmp 0x14028d8
call fcn.01401370
push 0
push str._16bpp
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
test eax, eax
jne 0x14028b3
call fcn.01401370
push 0
push str._24bpp
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
test eax, eax
jne 0x14028b3
lea eax, [ebp - 0x394]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [0x145b064]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [0x145b064]
push 0
push str.EngineDLL
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, 0x804
test eax, eax
je 0x1402154
cmp byte [eax], 0
je 0x1402154
mov ecx, str.sw.dll
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1402114
test dl, dl
je 0x1402110
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1402114
add eax, 2
add ecx, 2
test dl, dl
jne 0x14020f4
xor eax, eax
jmp 0x1402119
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14021cc
mov ecx, dword [0x145b064]
push str.hw.dll
push str.EngineDLL
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, esi
cmp word [0x145beec], ax
jne 0x14028ce
push 0x144f630
push 0x144f644
jmp 0x14028d8
mov ecx, dword [0x145b064]
push str.hw.dll
push str.EngineDLL
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [0x145b064]
push 0x400
push str.ScreenWidth
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x145b064]
push 0x300
push str.ScreenHeight
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x145b064]
push 0x20
push 0x144f434
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp word [0x145beec], si
jne 0x14021ba
push 0x144f8a0
push 0x144f8a8
jmp 0x14021c4
push str.Warning
push str.No_CS_Setting_Is_Found._Reseted_to_Recommend_Default_Settings.
call fcn.01401c90
add esp, 8
mov ecx, dword [0x145b064]
push 0
push str.EngineD3D
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x145b064]
test eax, eax
push 0
mov eax, dword [ecx]
je 0x1402200
push str.EngineD3D
call dword [eax + 0xc]
cmp word [0x145beec], si
jmp 0x140205d
push 0x144f434
call dword [eax + 8]
cmp eax, 0x20
je 0x1402246
mov ecx, dword [0x145b064]
push 0x20
push 0x144f434
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp word [0x145beec], si
jne 0x1402237
push 0x144f830
push 0x144f840
jmp 0x14028d8
push str.Not_Supported_Video_Mode
push str.This_games_does_not_supporting_D3D_Direct3D_._nPlease_update_your_graphic_driver_to_latest_version_to_make_sure_game_works_correctly.
jmp 0x14028d8
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.014041d0
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.0140b0f0
push str.hl.exe
lea esi, [eax + 1]
push esi
call fcn.01414e3b
add esp, 0x18
test eax, eax
je 0x14022b7
call fcn.01401370
push 0
push str._game
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
test eax, eax
jne 0x14022b7
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1402298
sub ecx, edx
mov byte [ecx + esi - 4], al
call fcn.01401370
push esi
push str._game
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
call fcn.01401370
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
lea ecx, [ebp - 0x39c]
push ecx
push str._game
mov ecx, eax
call edx
mov edx, dword [ebp - 0x39c]
mov esi, 0x145c2f8
sub esi, edx
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x14022e0
test eax, eax
je 0x140231b
push 5
add eax, 6
push str.czero
push eax
call fcn.0142ebaf
add esp, 0xc
test eax, eax
jne 0x140231b
call fcn.01401370
push 0
push str._forcevalve
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, dword [0x145b064]
push 0
push str.CrashInitializingVideoMode
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x1402439
mov ecx, dword [0x145b064]
push 0
push str.CrashInitializingVideoMode
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x145b064]
mov esi, str.hw.dll
push esi
push str.EngineDLL
mov eax, dword [ecx]
call dword [eax + 0x10]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1402383
test cl, cl
je 0x140237f
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1402383
add eax, 2
add esi, 2
test cl, cl
jne 0x1402363
xor eax, eax
jmp 0x1402388
sbb eax, eax
or eax, 1
test eax, eax
je 0x1402439
mov ecx, dword [0x145b064]
push 0
push str.EngineD3D
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x145b064]
test eax, eax
mov eax, dword [ecx]
je 0x14023c6
push 0
push str.EngineD3D
call dword [eax + 0xc]
push 0x30
push str.Video_Mode_Failed_To_Load
push str.The_game_has_detected_that_the_previous_attempt_to_start_in_D3D_video_mode_failed._nThe_game_will_now_run_attempt_to_run_in_openGL_mode.
jmp 0x14023df
push str.sw.dll
push str.EngineDLL
call dword [eax + 0x14]
push 0x30
push str.Video_Mode_Failed_To_Load
push str.The_game_has_detected_that_the_previous_attempt_to_start_in_openGL_video_mode_failed._nThe_game_will_now_run_in_software_mode.
push 0
call ebx
cmp eax, 1
je 0x14023fd
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.014096e2
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x145b064]
push 0x400
push str.ScreenWidth
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x145b064]
push 0x300
push str.ScreenHeight
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x145b064]
push 0x20
push 0x144f434
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x144fa58
push str.metahook.log
call fcn.0141d21b
add esp, 8
test eax, eax
je 0x140248c
push eax
call fcn.0141cd96
add esp, 4
lea eax, [ebp - 0x104]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
push str._smetahook.log
push eax
call fcn.01402930
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.Previous_log_file_has_been_deleted_
call fcn.01401ce0
add esp, 4
call fcn.01401cb0
mov edi, eax
mov dword [ebp - 0x3ac], edi
test edi, edi
je 0x1402852
nop
call fcn.01403920
push edi
call fcn.01401be0
push 0
push str.VFileSystem009
call eax
mov dword [0x145bee8], eax
add esp, 0xc
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x145bee8]
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
call fcn.014041f0
mov ecx, dword [0x145bee8]
push str.ROOT
push eax
call esi
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x3a4], 0
push eax
call fcn.01401e30
mov esi, dword [ebp - 0x3a4]
xor ebx, ebx
push esi
mov byte [0x145c318], 0
mov dword [0x145bef0], 0
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x3a8], ebx
mov byte [ebp - 0x39d], bl
call fcn.01402970
add esp, 8
test eax, eax
je 0x1402583
call fcn.014040f0
mov dword [ebp - 0x3a4], 0x140b4a8
push dword [ebp - 0x3a4]
push dword fs:[0]
mov dword fs:[0], esp
lea eax, [ebp - 0x398]
push eax
push 0x145bef0
push esi
call fcn.01402b40
add esp, 0xc
mov byte [ebp - 0x39d], 1
jmp 0x14025c7
push esi
call fcn.01401c10
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3a8], ebx
test ebx, ebx
je 0x140282a
push ebx
call fcn.01401be0
push 0
mov esi, eax
push str.VENGINE_LAUNCHER_API_VERSION002
call esi
add esp, 0xc
mov dword [ebp - 0x398], eax
test esi, esi
je 0x14025be
test eax, eax
jne 0x14025d4
push ebx
call fcn.01401bd0
add esp, 4
cmp dword [ebp - 0x398], 0
je 0x1402852
xor ecx, ecx
mov eax, ebx
cmp byte [ebp - 0x39d], cl
cmovne eax, ecx
push eax
call fcn.01403b30
mov eax, dword [ebp - 0x398]
push edi
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3a4], eax
call fcn.01401be0
add esp, 8
mov ebx, eax
call fcn.01401c00
mov edi, eax
call fcn.01401370
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov esi, eax
call fcn.014041f0
mov ecx, dword [ebp - 0x398]
push ebx
push edi
push 0x145c318
push esi
push eax
push dword [ebp - 0x3b4]
call dword [ebp - 0x3a4]
mov esi, eax
push esi
call fcn.01403760
add esp, 4
cmp byte [ebp - 0x39d], 0
je 0x1402658
push 0x145bef0
call fcn.014029f0
jmp 0x1402663
push dword [ebp - 0x3a8]
call fcn.01401bd0
add esp, 4
test esi, esi
je 0x1402852
cmp esi, 2
jg 0x1402852
xor bl, bl
sub esi, 1
je 0x140268f
sub esi, 1
jne 0x1402691
call fcn.01401d90
test eax, eax
setne bl
jmp 0x1402691
mov bl, 1
call fcn.01401370
push 0x144f62c
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._startwindowed
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._windowed
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._window
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._full
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._fullscreen
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._soft
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._software
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push 0x144f40c
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._d3d
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push 0x144fb38
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._width
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push 0x144fb44
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._height
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push str._novid
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push str._game
push 0x145c318
call fcn.0140b230
add esp, 8
test eax, eax
je 0x14027b7
call fcn.01401370
push str._game
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push str.load
push 0x145c318
call fcn.0140b230
add esp, 8
test eax, eax
je 0x14027de
call fcn.01401370
push str.load
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401370
push 0
push 0x145c318
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, dword [0x145bee8]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 0x3ac]
call fcn.01401bd0
add esp, 4
call fcn.01403d90
test bl, bl
je 0x1402852
call fcn.01401cb0
mov edi, eax
mov dword [ebp - 0x3ac], eax
test edi, edi
jne 0x14024b0
jmp 0x1402852
push esi
push str.Could_not_load__s._nPlease_try_again_at_a_later_time.
push 0x145cb18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Fatal_Error
push 0x145cb18
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x145b064]
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x3b0]
test ebx, ebx
je 0x1402875
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sub.WS2_32.dll_WSACleanup
call fcn.01403d90
push str.Game_Shutdown_
call fcn.01401ce0
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.014096e2
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x804
cmp word [0x145beec], ax
jmp 0x1402226
mov eax, 0x804
jmp 0x1402138
push str.Not_Supported_Software_Render
push str.This_games_does_not_supporting_software_rendering._nPlease_update_your_graphic_driver_to_latest_version_to_make_sure_game_works_correctly.
call fcn.01401c90
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.014096e2
mov esp, ebp
pop ebp
ret 0x10