Function at 0x14033d0
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
sub esp, 0x2f8
push ebx
push esi
mov esi, dword [vtable.CCommandLine.0]
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, 0x1575f38
call dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x156c03c
push str.kernel32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
call eax
test eax, eax
jne 0x1403474
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._nomutex
call dword [eax + 8]
test eax, eax
jne 0x1403474
push str.ValveHalfLifeLauncherMutex
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1403474
cmp eax, 0x80
je 0x1403474
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
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x2f8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
call dword [eax]
push 0x100
lea eax, [ebp - 0x168]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x168]
push 0x5c
push eax
call fcn.014206a0
push str.svencoop.exe
lea esi, [eax + 1]
push esi
call fcn.01425fe5
add esp, 0x10
test eax, eax
jne 0x14034fa
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._game
call dword [eax + 8]
test eax, eax
jne 0x14034fa
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str.svencoop
push str._game
call dword [eax + 0x10]
push str.hl.exe
push esi
call fcn.01425fe5
add esp, 8
test eax, eax
je 0x1403550
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push 0
push str._game
call dword [eax + 8]
test eax, eax
jne 0x1403550
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1403530
sub ecx, edx
push esi
push str._game
mov byte [ecx + esi - 4], al
mov ecx, 0x1575f38
mov eax, dword [vtable.CCommandLine.0]
call dword [eax + 0x10]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._game
call dword [eax + 8]
mov esi, eax
mov ecx, str.valve
test esi, esi
push 0x1f
cmovne ecx, dword [ebp - 0xc]
push ecx
push 0x159e644
call fcn.01429e90
add esp, 0xc
mov byte [0x159e663], 0
test esi, esi
je 0x14035bf
push 5
lea eax, [esi + 6]
push str.czero
push eax
call fcn.0142e1d6
add esp, 0xc
test eax, eax
jne 0x14035bf
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._forcevalve
call dword [eax + 0x10]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0
push str.CrashInitializingVideoMode
call dword [eax + 8]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x14036f0
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0
push str.CrashInitializingVideoMode
call dword [eax + 0xc]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push str.hw.dll
push str.EngineDLL
call dword [eax + 0x10]
cmp byte [eax], 0
je 0x14036f0
mov ecx, str.hw.dll
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1403640
test dl, dl
je 0x140363c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1403640
add eax, 2
add ecx, 2
test dl, dl
jne 0x1403620
xor eax, eax
jmp 0x1403645
sbb eax, eax
or eax, 1
test eax, eax
je 0x14036f0
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0
push str.EngineD3D
call dword [eax + 8]
test eax, eax
mov ecx, 0x1576344
mov eax, dword [vtable.CRegistry.0]
je 0x1403687
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 0x14036a0
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 0x1403469
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0x280
push str.ScreenWidth
call dword [eax + 0xc]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0x1e0
push str.ScreenHeight
call dword [eax + 0xc]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0x10
push str.ScreenBPP
call dword [eax + 0xc]
nop
push str.filesystem_stdio.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1403c45
push 0x156bf84
push eax
call ebx
push 0
push str.VFileSystem009
call eax
add esp, 8
mov dword [0x159e03c], eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x159e03c]
push str.ROOT
mov esi, dword [eax]
call fcn.0140d890
mov ecx, dword [0x159e03c]
push eax
call dword [esi + 0x10]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push str.hw.dll
push str.EngineDLL
call dword [eax + 0x10]
mov edx, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push 0
push str._soft
mov esi, eax
call dword [edx + 8]
test eax, eax
jne 0x14037bf
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._software
call dword [eax + 8]
test eax, eax
jne 0x14037bf
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push 0x156c030
call dword [eax + 8]
test eax, eax
jne 0x14037b8
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._d3d
call dword [eax + 8]
test eax, eax
je 0x14037c4
mov esi, str.hw.dll
jmp 0x14037c4
mov esi, str.sw.dll
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push esi
push str.EngineDLL
call dword [eax + 0x14]
mov ecx, dword [0x159e03c]
push 0
mov byte [0x159e680], 0
mov dword [0x159e040], 0
mov dword [ebp - 8], 0
mov eax, dword [ecx]
push 0x156c3a8
push esi
mov byte [ebp - 1], 0
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x14038f6
mov ecx, dword [0x159e03c]
lea eax, [ebp - 0x68]
push edi
push 0x44
push eax
mov edx, dword [ecx]
call dword [edx + 0x54]
mov ecx, dword [0x159e03c]
push edi
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebp - 0x28], 0x12345678
jne 0x14038f6
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
push 0x22
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov dword [ebp - 0x1c], 0x1420310
push dword [ebp - 0x1c]
push dword fs:[0]
mov dword fs:[0], esp
mov ecx, dword [0x159e03c]
push 0
push 0x156c3a8
mov eax, dword [ecx]
push esi
call dword [eax + 0x28]
mov ecx, dword [0x159e03c]
mov ebx, eax
push 2
push 0
push ebx
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ecx, dword [0x159e03c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [0x159e03c]
mov edi, eax
push 0
push 0
push ebx
mov edx, dword [ecx]
call dword [edx + 0x30]
push edi
call fcn.01429fcf
mov ecx, dword [0x159e03c]
add esp, 4
mov esi, eax
mov edx, dword [ecx]
push ebx
push edi
push esi
call dword [edx + 0x54]
lea eax, [ebp - 8]
mov ecx, esi
push edi
push eax
call fcn.01403ca0
push esi
call fcn.01429fb4
mov ecx, dword [0x159e03c]
add esp, 0xc
mov eax, dword [ecx]
push ebx
call dword [eax + 0x2c]
mov ebx, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [ebp - 1], 1
jmp 0x1403938
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x1403c15
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x156bf84
push ebx
call edi
push 0
mov esi, eax
push str.VENGINE_LAUNCHER_API_VERSION002
call esi
add esp, 8
mov dword [ebp - 8], eax
test esi, esi
je 0x1403931
test eax, eax
jne 0x1403942
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 8], 0
je 0x1403c55
xor eax, eax
mov ecx, ebx
cmp byte [ebp - 1], al
cmovne ecx, eax
call fcn.01405b10
push 0x156bf84
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [vtable.CCommandLine.0]
push sym.MetaHook.exe_CreateInterface
mov esi, dword [ecx]
mov ecx, 0x1575f38
push 0x159e680
call dword [eax + 4]
push eax
call fcn.0140d890
mov ecx, dword [ebp - 8]
push eax
push dword [ebp + 8]
call dword [esi + 4]
mov esi, dword [0x159e098]
mov edi, eax
test esi, esi
je 0x14039b6
mov ecx, dword [esi + 0x3c]
sub ecx, 2
je 0x14039a6
sub ecx, 1
je 0x14039a6
sub ecx, 1
jne 0x14039af
mov ecx, dword [esi + 0x38]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x1403994
call fcn.01406880
cmp byte [ebp - 1], 0
je 0x14039d1
push dword [0x159e040]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebx
jmp 0x14039e6
test ebx, ebx
je 0x14039e0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebx
jmp 0x14039e6
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1403c55
cmp edi, 2
jg 0x1403c55
sub edi, 1
je 0x1403a78
sub edi, 1
jne 0x1403a7c
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0x280
push str.ScreenWidth
call dword [eax + 0xc]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0x1e0
push str.ScreenHeight
call dword [eax + 0xc]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push 0x10
push str.ScreenBPP
call dword [eax + 0xc]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
push str.sw.dll
push str.EngineDLL
call dword [eax + 0x14]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
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 edi
call esi
cmp eax, 1
setne byte [ebp - 2]
jmp 0x1403a82
mov byte [ebp - 2], 1
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push 0x156c344
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._startwindowed
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._windowed
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._window
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._full
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._fullscreen
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._soft
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._software
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push 0x156c030
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._d3d
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push 0x156c380
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._width
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push 0x156c38c
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._height
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._novid
call dword [eax + 0xc]
push str._game
push 0x159e680
call fcn.01420430
add esp, 8
test eax, eax
je 0x1403bb8
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str._game
call dword [eax + 0xc]
push str.load
push 0x159e680
call fcn.01420430
add esp, 8
test eax, eax
je 0x1403be0
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push str.load
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x1575f38
push 0
push 0x159e680
call dword [eax + 0x10]
mov ecx, dword [0x159e03c]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 0x10]
call ebx
cmp byte [ebp - 2], 0
je 0x1403c55
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14036f0
push esi
push str.Could_not_load_engine_:__s.
push 0x159ee80
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Fatal_Error
push 0x159ee80
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 eax, dword [vtable.CRegistry.0]
mov ecx, 0x1576344
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1403c77
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSACleanup]
call fcn.01406880
push 1
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10