Function at 0x1406060
Capabilities:
Accept command line arguments
Initialize winsock library

Disassembly:
sub esp, 0x194
lea eax, [esp + 4]
push ebx
push esi
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
mov ecx, dword [0x145a8d8]
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, dword [0x145a8d8]
push eax
call dword [esi]
mov edx, dword [str.swds.dll]
push edx
call fcn.01405210
add esp, 4
xor ebx, ebx
cmp eax, ebx
mov dword [0x146312c], eax
push ebx
jne 0x14060c3
push str.Half_Life_Dedicated_Server_Error
push str.Unable_to_load_engine__image_is_corrupt.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x194
ret
mov ecx, dword [0x145a8d8]
mov dword [0x14630f0], 0x14056c0
push str._steam
mov esi, str.filesystem_stdio.dll
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x14060eb
mov esi, str.filesystem_steam.dll
push esi
call fcn.01405210
push eax
mov dword [0x1463104], eax
call fcn.01405260
add esp, 8
cmp eax, ebx
mov dword [0x1463108], eax
jne 0x1406114
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x194
ret
push ebx
push str.VFileSystem009
call eax
add esp, 8
cmp eax, ebx
mov dword [0x1461068], eax
jne 0x1406134
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x194
ret
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [0x145a8d8]
mov byte [0x1463114], 1
push ebx
push str._steam
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x14061b0
mov ecx, dword [0x145a8d8]
lea eax, [esp + 8]
mov dword [esp + 8], ebx
push eax
mov edx, dword [ecx]
push str._console
call dword [edx + 8]
test eax, eax
je 0x14061b0
cmp dword [esp + 8], ebx
je 0x14061b0
mov byte [0x1463114], bl
push ebx
mov ecx, 0x1461070
call fcn.014047f0
test al, al
jne 0x1406279
push ebx
push str.Half_Life_Dedicated_Server_Error
push str.Failed_to_initialize_console.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
cmp byte [0x1463114], bl
je 0x1406180
call fcn.01405d40
mov dword [0x1463124], ebx
call fcn.01405860
cmp byte [0x1463114], bl
je 0x140621d
mov ecx, dword [0x1463128]
cmp byte [ecx + 0x83], bl
je 0x1406207
call fcn.01406360
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
test al, al
je 0x1406207
call fcn.01406360
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
mov eax, dword [0x1463128]
cmp byte [eax + 0x83], bl
jne 0x14061de
cmp byte [0x1463114], bl
je 0x140621d
mov ecx, dword [0x1463128]
cmp byte [ecx + 0x82], bl
jne 0x1406222
call fcn.01405a80
mov eax, dword [0x1463120]
cmp eax, ebx
je 0x1406234
push eax
call fcn.01430720
add esp, 4
mov ecx, dword [0x1461068]
cmp ecx, ebx
je 0x1406243
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [0x1463104]
push eax
call fcn.014056f0
mov eax, dword [0x146311c]
add esp, 4
cmp eax, ebx
je 0x1406269
push eax
call fcn.014056f0
add esp, 4
mov dword [0x146311c], ebx
call sub.WSOCK32.dll_WSACleanup
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
call fcn.01405890
test eax, eax
je 0x140626e
push 0xc
mov ecx, 0x1461070
call fcn.01404bf0
push 1
push 0x1405900
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x14061bd
push ebx
push str.Half_Life_Dedicated_Server_Error
push str.Unable_to_set_control_handler
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret