Function at 0x408550
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
and esp, 0xfffffff8
mov eax, 0x13cc
call fcn.0042cb60
mov eax, dword [0x43d040]
xor eax, esp
mov dword [esp + 0x13c8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 4
push 0x2000
push 0x400
push 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esp + 0x1b8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov edi, eax
mov dword [esp + 0x24], 1
xor esi, esi
test edi, edi
je 0x4085fe
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
push 4
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + esi*4 + 0x1c4]
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
je 0x4085e9
push str.The_low_fragmentation_heap_has_been_enabled._n
call fcn.004016a0
add esp, 4
jmp 0x4085f9
call ebx
push eax
push str.Failed_to_enable_the_low_fragmentation_heap___d._n
call fcn.004016a0
add esp, 8
inc esi
cmp esi, edi
jb 0x4085c0
mov esi, dword [vtable.CCommandLine.0]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, 0x49c21c
call dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x439d74
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
call eax
test eax, eax
jne 0x40869e
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._nomutex
call dword [eax + 8]
test eax, eax
jne 0x40869e
push str.NexonCSOMutex
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40869e
cmp eax, 0x80
je 0x40869e
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 ecx, dword [esp + 0x13c8]
xor ecx, esp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x49c224
call dword [eax]
push 0x104
lea eax, [esp + 0x12cc]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x12c8]
push 0x5c
push eax
call fcn.0040e620
push str.hl.exe
lea esi, [eax + 1]
push esi
call fcn.004176ed
add esp, 0x10
test eax, eax
je 0x408733
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0
push str._game
call dword [eax + 8]
test eax, eax
jne 0x408733
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408713
sub ecx, edx
push esi
push str._game
mov byte [ecx + esi - 4], al
mov ecx, 0x49c21c
mov eax, dword [vtable.CCommandLine.0]
call dword [eax + 0x10]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._game
call dword [eax + 8]
mov esi, eax
mov ecx, str.valve
test esi, esi
push 0x1f
cmovne ecx, dword [esp + 0x24]
push ecx
push 0x49d028
call fcn.00416230
add esp, 0xc
mov byte [0x49d047], 0
test esi, esi
je 0x4087a5
push 5
lea eax, [esi + 6]
push str.czero
push eax
call fcn.004177c6
add esp, 0xc
test eax, eax
jne 0x4087a5
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._forcevalve
call dword [eax + 0x10]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0
push str._lang
call dword [eax + 8]
test eax, eax
jne 0x4087d4
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0x439e38
push str._lang
call dword [eax + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.filesystem_nar.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x408bae
push 0x437490
push ebx
call edi
push 0
push str.VFileSystem009
call eax
add esp, 8
mov dword [0x49cfdc], eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push 0x104
lea eax, [esp + 0x11c4]
mov byte [esp + 0x11c4], 0
push eax
push 0
mov byte [0x49ddd8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4088a0
push 0x104
push 0x49ddd8
lea eax, [esp + 0x11c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push 0x5c
push 0x49ddd8
call fcn.0040e620
add esp, 8
cmp byte [eax], 0
je 0x408863
mov byte [eax + 1], 0
mov eax, 0x49ddd8
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408870
sub eax, edx
test eax, eax
jle 0x4088a0
mov cl, byte [eax + 0x49ddd7]
cmp cl, 0x5c
je 0x40888d
cmp cl, 0x2f
jne 0x4088a0
dec eax
cmp eax, 0x104
jae 0x408c07
mov byte [eax + 0x49ddd8], 0
mov ecx, dword [0x49cfdc]
push 0x439e4c
push 0x49ddd8
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x49c224
push str.hw.dll
push str.EngineDLL
call dword [eax + 0x14]
push str.hw.dll
mov byte [0x49d2d0], 0
call esi
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x408b7a
push 0x437490
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov esi, eax
push str.VENGINE_LAUNCHER_API_VERSION002
call esi
add esp, 8
mov dword [esp + 0x10], eax
test esi, esi
je 0x40890e
test eax, eax
jne 0x408920
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 0
je 0x408bc2
mov edx, ebx
mov ecx, edi
call fcn.00405f70
push 0x437490
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x10]
mov ecx, 0x49c21c
push eax
mov eax, dword [vtable.CCommandLine.0]
push sym.CSOLauncher.exe_CreateInterface
mov esi, dword [edi]
push 0x49d2d0
call dword [eax + 4]
push eax
call fcn.00408e30
push eax
push dword [esp + 0x2c]
mov ecx, edi
call dword [esi + 4]
mov ecx, dword [0x49cfd8]
mov edi, eax
test ecx, ecx
je 0x40897e
nop
mov esi, dword [ecx + 0x20]
call fcn.00407f20
mov ecx, esi
test esi, esi
jne 0x408970
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x49cfd8], 0
call esi
test edi, edi
je 0x408bc2
cmp edi, 2
jg 0x408bc2
mov byte [esp + 0xf], 0
sub edi, 1
je 0x4089d1
sub edi, 1
jne 0x4089d6
push 0x31
push str.Video_mode_change_failure
push str.The_specified_video_mode_is_not_supported._n
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
setne byte [esp + 0xf]
jmp 0x4089d6
mov byte [esp + 0xf], 1
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0x439ee8
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._startwindowed
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._windowed
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._window
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._full
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._fullscreen
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._soft
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._software
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0x439f38
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._d3d
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0x439f44
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._width
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0x439f50
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._height
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._novid
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str.connect
call dword [eax + 0xc]
push str._game
push 0x49d2d0
call fcn.0040e190
add esp, 8
test eax, eax
je 0x408b1e
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str._game
call dword [eax + 0xc]
push str.load
push 0x49d2d0
call fcn.0040e190
add esp, 8
test eax, eax
je 0x408b46
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push str.load
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x49c21c
push 0
push 0x49d2d0
call dword [eax + 0x10]
mov ecx, dword [0x49cfdc]
mov eax, dword [ecx]
call dword [eax + 8]
push ebx
call esi
cmp byte [esp + 0xf], 0
je 0x408bc2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4087d4
push str.hw.dll
push str.Could_not_load_engine_:__s.
push 0x49d0d0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Fatal_Error
push 0x49d0d0
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 dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x49c224
call dword [eax + 4]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x408be5
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]
mov ecx, dword [esp + 0x13d4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040cd2d
int3