Function at 0x1406020
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 [0x1459904]
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, dword [0x1459904]
push eax
call dword [esi]
mov edx, dword [str.swds.dll]
push edx
call fcn.014051f0
add esp, 4
xor ebx, ebx
cmp eax, ebx
mov dword [0x146216c], eax
push ebx
jne 0x1406083
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 [0x1459904]
mov dword [0x1462130], 0x1405680
push str._steam
mov esi, str.filesystem_stdio.dll
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x14060ab
mov esi, str.filesystem_steam.dll
push esi
call fcn.014051f0
push eax
mov dword [0x1462144], eax
call fcn.01405240
add esp, 8
cmp eax, ebx
mov dword [0x1462148], eax
jne 0x14060d4
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 [0x14600a8], eax
jne 0x14060f4
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 [0x1459904]
mov byte [0x1462154], 1
push ebx
push str._steam
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x1406170
mov ecx, dword [0x1459904]
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 0x1406170
cmp dword [esp + 8], ebx
je 0x1406170
mov byte [0x1462154], bl
push ebx
mov ecx, 0x14600b0
call fcn.014047f0
test al, al
jne 0x1406239
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 [0x1462154], bl
je 0x1406140
call fcn.01405d00
mov dword [0x1462164], ebx
call fcn.01405820
cmp byte [0x1462154], bl
je 0x14061dd
mov ecx, dword [0x1462168]
cmp byte [ecx + 0x83], bl
je 0x14061c7
call fcn.01406320
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
test al, al
je 0x14061c7
call fcn.01406320
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
mov eax, dword [0x1462168]
cmp byte [eax + 0x83], bl
jne 0x140619e
cmp byte [0x1462154], bl
je 0x14061dd
mov ecx, dword [0x1462168]
cmp byte [ecx + 0x82], bl
jne 0x14061e2
call fcn.01405a20
mov eax, dword [0x1462160]
cmp eax, ebx
je 0x14061f4
push eax
call fcn.01430060
add esp, 4
mov ecx, dword [0x14600a8]
cmp ecx, ebx
je 0x1406203
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [0x1462144]
push eax
call fcn.014056b0
mov eax, dword [0x146215c]
add esp, 4
cmp eax, ebx
je 0x1406229
push eax
call fcn.014056b0
add esp, 4
mov dword [0x146215c], ebx
call sub.WSOCK32.dll_WSACleanup
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
call fcn.01405850
test eax, eax
je 0x140622e
push 0xc
mov ecx, 0x14600b0
call fcn.01404be0
push 1
push 0x14058c0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x140617d
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