Function at 0x1401746
Capabilities:
Accept command line arguments
Check mutex on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
push ebx
push esi
mov eax, str.filesystem_stdio.dll
push edi
push eax
push eax
push dword [ebp + 0x10]
call fcn.01402023
add esp, 0xc
test al, al
jne 0x1401c5c
xor ebx, ebx
push str.ValveHalfLifeLauncherMutex
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1401788
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x14017b5
cmp eax, 0x80
je 0x14017b5
push 0x10
push str.Error
push str.Could_not_launch_game._nOnly_one_instance_of_this_game_can_be_run_at_a_time.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1401c5c
lea eax, [ebp - 0x4a8]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, dword [0x141156c]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [0x1411040]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, dword [0x1411040]
push eax
call dword [esi]
mov ecx, dword [0x1411040]
push ebx
push str._steam
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
setne al
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x118]
push 0x100
push eax
call fcn.0140169e
lea eax, [ebp - 0x118]
push 0x5c
push eax
call fcn.01402f80
mov esi, eax
inc esi
push esi
push 0x14114dc
call fcn.0140a6c0
add esp, 0x18
mov edi, str._game
test eax, eax
je 0x140185f
mov ecx, dword [0x1411040]
push ebx
push edi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x140185f
push esi
call fcn.014029f0
pop ecx
mov byte [eax + esi - 4], bl
mov ecx, dword [0x1411040]
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x1411040]
push ebx
push edi
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, ebx
je 0x1401885
push 0x104
push eax
push 0x1414df0
call fcn.01404b50
add esp, 0xc
jmp 0x1401896
push str.valve
push 0x1414df0
call fcn.014028f0
pop ecx
pop ecx
push ebx
call fcn.014032fd
mov dword [esp], str.mssv29.asi
call fcn.0140edb8
mov dword [esp], str.mssv12.asi
call fcn.0140edb8
mov dword [esp], str.mp3dec.asi
call fcn.0140edb8
mov dword [esp], str.opengl32.dll
call fcn.0140edb8
pop ecx
mov esi, str.CrashInitializingVideoMode
mov ecx, dword [0x141156c]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x14019b2
mov ecx, dword [0x141156c]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x141156c]
mov edi, str.hw.dll
push edi
mov esi, str.EngineDLL
mov eax, dword [ecx]
push 0x14156fc
push esi
call dword [eax + 0x10]
push eax
call fcn.0140a6c0
pop ecx
test eax, eax
pop ecx
jne 0x14019b2
mov ecx, dword [0x141156c]
push ebx
push str.EngineD3D
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x141156c]
cmp eax, 1
mov eax, dword [ecx]
jne 0x1401955
push ebx
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 0x1401966
push edi
push esi
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 ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x1401c5c
mov ecx, dword [0x141156c]
push 0x10
push str.ScreenBPP
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x141156c]
push 0x280
push str.ScreenHeight
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x141156c]
push 0x1e0
push str.ScreenWidth
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, 0x1414ef8
push dword [ebp - 0x14]
lea eax, [ebp - 0x118]
push eax
call fcn.014016bc
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1401c39
push ebx
push str.VFileSystem009
push eax
call fcn.014014b4
pop ecx
call eax
pop ecx
mov dword [0x14156f8], eax
mov edx, dword [eax]
pop ecx
mov ecx, eax
call dword [edx + 4]
mov eax, dword [0x14156f8]
push str.ROOT
mov edi, dword [eax]
call fcn.014014fb
mov ecx, dword [0x14156f8]
push eax
call dword [edi + 0x10]
lea eax, [ebp - 8]
mov byte [ebp + 0x13], bl
push eax
xor edi, edi
mov byte [0x1414ef8], bl
call fcn.01401578
push dword [ebp - 8]
call fcn.01401461
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x1401a87
push eax
call fcn.014014b4
cmp eax, ebx
pop ecx
je 0x1401a7c
push ebx
push str.VENGINE_LAUNCHER_API_VERSION002
call eax
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x1401a7c
push dword [ebp - 0xc]
mov edi, dword [eax]
call fcn.014014b4
pop ecx
push eax
call fcn.014014ce
mov ecx, dword [0x1411040]
push eax
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push eax
call fcn.014014fb
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [edi + 4]
mov edi, eax
push dword [ebp - 0x18]
call fcn.014014a2
pop ecx
jmp 0x1401ab3
push dword [ebp - 8]
lea eax, [ebp - 0x318]
push str.Could_not_load__s._nPlease_try_again_at_a_later_time.
push eax
call fcn.0140328c
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x10
push str.Fatal_Error
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, edi
sub eax, ebx
je 0x1401acf
dec eax
je 0x1401ac9
dec eax
jne 0x1401ad2
call fcn.01401632
mov byte [ebp + 0x13], al
jmp 0x1401ad2
mov byte [ebp + 0x13], 1
jmp 0x1401ad2
mov byte [ebp + 0x13], bl
mov ecx, dword [0x1411040]
push 0x14112f0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._startwindowed
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._windowed
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._window
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._full
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._fullscreen
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._soft
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._software
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push 0x14110d4
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._d3d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push 0x14112b4
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._width
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push 0x14112a8
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str._height
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push str.connect
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push ebx
push str._novid
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, str._game
push edi
push esi
call fcn.01402e10
pop ecx
test eax, eax
pop ecx
je 0x1401bf1
mov ecx, dword [0x1411040]
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, str.load
push edi
push esi
call fcn.01402e10
pop ecx
test eax, eax
pop ecx
je 0x1401c0f
mov ecx, dword [0x1411040]
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x1411040]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x14156f8]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 0xc]
call fcn.014014a2
cmp byte [ebp + 0x13], bl
pop ecx
jne 0x14019b7
mov ecx, dword [0x141156c]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10