Function at 0x1403520
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1443290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
call fcn.01401390
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, esi
call dword [edi]
push 0x14443c4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
jne 0x14035dd
call fcn.01401390
push 0
push str._nomutex
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x14035dd
push str.ValveHalfLifeLauncherMutex
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14035dd
cmp eax, 0x80
je 0x14035dd
push 0x10
push str.Error
push str.Could_not_launch_game._nOnly_one_instance_of_this_game_can_be_run_at_a_time.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x2b8]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [0x158a4dc]
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x128]
push 0x100
push eax
call fcn.0140f0c0
lea eax, [ebp - 0x128]
push 0x5c
push eax
call fcn.01422e30
push str.svencoop.exe
lea ebx, [eax + 1]
push ebx
mov dword [ebp - 0x24], ebx
call fcn.0142d0b9
add esp, 0x18
test eax, eax
jne 0x1403672
call fcn.01401390
push 0
push str._game
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x1403672
call fcn.01401390
push str.svencoop
push str._game
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
call fcn.01401390
push 0x14442ca
push str._32bpp
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push str.hl.exe
push ebx
call fcn.0142d0b9
add esp, 8
test eax, eax
je 0x14036bf
call fcn.01401390
push 0
push str._game
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x14036bf
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x14036a0
sub ecx, edx
mov byte [ecx + ebx - 4], al
call fcn.01401390
push ebx
push str._game
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
call fcn.01401390
lea ecx, [ebp - 0x1c]
push ecx
push str._game
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov esi, eax
mov ecx, str.valve
test esi, esi
push 0x1f
cmovne ecx, dword [ebp - 0x1c]
push ecx
push 0x15b67c8
call fcn.0142d5c0
add esp, 0xc
mov byte [0x15b67e7], 0
test esi, esi
je 0x140372d
push 5
lea eax, [esi + 6]
push str.czero
push eax
call fcn.01431bc9
add esp, 0xc
test eax, eax
jne 0x140372d
call fcn.01401390
push 0
push str._forcevalve
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, dword [0x158a4dc]
push 0
push str.CrashInitializingVideoMode
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x1403847
mov ecx, dword [0x158a4dc]
push 0
push str.CrashInitializingVideoMode
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x158a4dc]
push str.hw.dll
push str.EngineDLL
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [eax], 0
je 0x1403847
mov ecx, str.hw.dll
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x14037a2
test dl, dl
je 0x140379e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x14037a2
add eax, 2
add ecx, 2
test dl, dl
jne 0x1403782
xor eax, eax
jmp 0x14037a7
sbb eax, eax
or eax, 1
test eax, eax
je 0x1403847
mov ecx, dword [0x158a4dc]
push 0
push str.EngineD3D
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x158a4dc]
test eax, eax
mov eax, dword [ecx]
je 0x14037e5
push 0
push str.EngineD3D
call dword [eax + 0xc]
push 0x31
push str.Video_mode_change_failure
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 0x14037fe
push str.sw.dll
push str.EngineDLL
call dword [eax + 0x14]
push 0x31
push str.Video_mode_change_failure
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 esi
cmp eax, 1
jne 0x14035c8
mov ecx, dword [0x158a4dc]
push 0x280
push str.ScreenWidth
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x158a4dc]
push 0x1e0
push str.ScreenHeight
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x158a4dc]
push 0x20
push str.ScreenBPP
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
nop word [eax + eax]
push str.filesystem_stdio.dll
call fcn.014034a0
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1403d62
push eax
call fcn.01403470
push 0
push str.VFileSystem009
call eax
mov edi, eax
add esp, 0xc
mov esi, 0xc
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x14038af
add edx, 4
add eax, 4
sub esi, 4
jae 0x1403890
mov ecx, dword [0x15b5fbc]
mov dword [0x15b5fb8], edi
jmp 0x14038bd
mov ecx, edi
mov edi, dword [0x15b5fb8]
mov dword [0x15b5fbc], ecx
test edi, edi
je 0x14038c7
mov eax, dword [edi]
mov ecx, edi
jmp 0x14038c9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [0x15b5fb8]
push str.ROOT
test esi, esi
je 0x14038ea
mov esi, dword [esi]
call fcn.0140f0e0
mov ecx, dword [0x15b5fb8]
jmp 0x14038fc
mov eax, dword [0x15b5fbc]
mov esi, dword [eax]
call fcn.0140f0e0
mov ecx, dword [0x15b5fbc]
push eax
call dword [esi + 0x10]
mov ecx, dword [0x158a4dc]
push str.hw.dll
push str.EngineDLL
mov eax, dword [ecx]
call dword [eax + 0x10]
push str.svencoop.exe
push dword [ebp - 0x24]
mov esi, eax
call fcn.0142d0b9
add esp, 8
test eax, eax
jne 0x1403932
mov esi, str.hw.dll
jmp 0x140399a
call fcn.01401390
push 0
push str._soft
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x1403995
call fcn.01401390
push 0
push str._software
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x1403995
call fcn.01401390
push 0
push 0x14443a0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x140398e
call fcn.01401390
push 0
push str._d3d
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
je 0x140399a
mov esi, str.hw.dll
jmp 0x140399a
mov esi, str.sw.dll
mov ecx, dword [0x158a4dc]
push esi
push str.EngineDLL
mov eax, dword [ecx]
call dword [eax + 0x14]
push esi
mov byte [0x15b5fc8], 0
mov dword [0x15b5fc0], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xd], 0
call fcn.01403dc0
add esp, 4
test eax, eax
je 0x1403a09
call fcn.0140f090
mov dword [ebp - 0x28], 0x1422b50
push dword [ebp - 0x28]
push dword fs:[0]
mov dword fs:[0], esp
lea eax, [ebp - 0x14]
push eax
push 0x15b5fc0
push esi
call fcn.01403fa0
add esp, 0xc
mov byte [ebp - 0xd], 1
jmp 0x1403a44
push esi
call fcn.014034a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1403d32
push ebx
call fcn.01403470
push 0
mov esi, eax
push str.VENGINE_LAUNCHER_API_VERSION002
call esi
add esp, 0xc
mov dword [ebp - 0x14], eax
test esi, esi
je 0x1403a3b
test eax, eax
jne 0x1403a4e
push ebx
call fcn.01403450
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x1403d02
xor ecx, ecx
mov eax, ebx
cmp byte [ebp - 0xd], cl
push 0x15b67c8
cmovne eax, ecx
push eax
call fcn.01408e90
call fcn.01401390
mov ecx, dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x18]
mov edi, dword [ecx]
call fcn.01403470
add esp, 0xc
push eax
call fcn.01403490
push eax
mov eax, dword [esi]
mov ecx, esi
push 0x15b5fc8
call dword [eax + 4]
push eax
call fcn.0140f0e0
mov ecx, dword [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [edi + 4]
mov esi, eax
push esi
call fcn.01408d80
add esp, 4
call fcn.0140ae20
cmp byte [ebp - 0xd], 0
je 0x1403abf
push 0x15b5fc0
call fcn.01403e40
jmp 0x1403ac5
push ebx
call fcn.01403450
add esp, 4
test esi, esi
je 0x1403d02
cmp esi, 2
jg 0x1403d02
mov byte [ebp - 0xd], 0
sub esi, 1
je 0x1403b56
sub esi, 1
jne 0x1403b5a
mov ecx, dword [0x158a4dc]
push 0x280
push str.ScreenWidth
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x158a4dc]
push 0x1e0
push str.ScreenHeight
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x158a4dc]
push 0x10
push str.ScreenBPP
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x158a4dc]
push str.sw.dll
push str.EngineDLL
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0x31
push str.Video_mode_change_failure
push str.The_specified_video_mode_is_not_supported._nThe_game_will_now_run_in_software_mode.
push esi
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
call esi
cmp eax, 1
setne byte [ebp - 0xd]
jmp 0x1403b60
mov byte [ebp - 0xd], 1
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01401390
push 0x14446ac
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._startwindowed
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._windowed
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._window
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._full
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push 0x14446dc
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._soft
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._software
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push 0x14443a0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._d3d
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push 0x14446e8
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._width
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push 0x14446f4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._height
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push str._novid
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push str._game
push 0x15b5fc8
call fcn.01422f70
add esp, 8
test eax, eax
je 0x1403c86
call fcn.01401390
push str._game
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push str.load
push 0x15b5fc8
call fcn.01422f70
add esp, 8
test eax, eax
je 0x1403cad
call fcn.01401390
push str.load
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.01401390
push 0
push 0x15b5fc8
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
cmp byte [ebp - 0xd], 0
je 0x1403cf9
mov ecx, dword [0x15b5fb8]
mov dword [ebp - 4], 2
test ecx, ecx
jne 0x1403cdd
mov ecx, dword [0x15b5fbc]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 0x18]
call fcn.01403450
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x1403850
mov dword [ebp - 4], 1
jmp 0x1403d09
mov dword [ebp - 4], 0
mov ecx, dword [0x15b5fb8]
test ecx, ecx
jne 0x1403d19
mov ecx, dword [0x15b5fbc]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 0x18]
call fcn.01403450
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x1403d72
push esi
push str.Could_not_load_engine_:__s.
push 0x15b67e8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Fatal_Error
push 0x15b67e8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push str.Fatal_Error
push str.Could_not_load_filesystem_dll._nFileSystem_crashed_during_construction.
push 0
call esi
mov ecx, dword [0x158a4dc]
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1403d92
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10