Function at 0x40ac30
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.00431af0
mov eax, dword [0x442040]
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 + 0x2c], eax
mov dword [esp + 0x28], 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 0x40acde
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 0x40acc9
push str.The_low_fragmentation_heap_has_been_enabled._n
call fcn.004016d0
add esp, 4
jmp 0x40acd9
call ebx
push eax
push str.Failed_to_enable_the_low_fragmentation_heap___d._n
call fcn.004016d0
add esp, 8
inc esi
cmp esi, edi
jb 0x40aca0
mov esi, dword [vtable.CCommandLine.0]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, 0x488c3c
call dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x43e254
push str.kernel32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
call eax
test eax, eax
jne 0x40ad7c
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._nomutex
call dword [eax + 8]
test eax, eax
jne 0x40ad7c
push str.NexonCSOMutex
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ad7c
cmp eax, 0x80
je 0x40ad7c
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.0040f2b7
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, 0x488c44
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.00411820
push str.hl.exe
lea esi, [eax + 1]
push esi
call fcn.0041c310
add esp, 0x10
test eax, eax
je 0x40ae11
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push 0
push str._game
call dword [eax + 8]
test eax, eax
jne 0x40ae11
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40adf1
sub ecx, edx
push esi
push str._game
mov byte [ecx + esi - 4], al
mov ecx, 0x488c3c
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, 0x488c3c
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 0x48a034
call fcn.0041a7f0
add esp, 0xc
mov byte [0x48a053], 0
test esi, esi
je 0x40ae83
push 5
lea eax, [esi + 6]
push str.czero
push eax
call fcn.0041c3e9
add esp, 0xc
test eax, eax
jne 0x40ae83
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._forcevalve
call dword [eax + 0x10]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push 0
push str._lang
call dword [eax + 8]
test eax, eax
jne 0x40aeb2
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push 0x43e318
push str._lang
call dword [eax + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.filesystem_nar.dll
call esi
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x40b373
push 0x43c328
push edi
call ebx
push 0
push str.VFileSystem009
call eax
add esp, 8
mov dword [0x489fe0], 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 [0x48adf0], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40af80
push 0x104
push 0x48adf0
lea eax, [esp + 0x11c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push 0x5c
push 0x48adf0
call fcn.00411820
add esp, 8
cmp byte [eax], 0
je 0x40af45
mov byte [eax + 1], 0
mov eax, 0x48adf0
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af50
sub eax, edx
test eax, eax
jle 0x40af80
mov cl, byte [eax + 0x48adef]
cmp cl, 0x5c
je 0x40af6d
cmp cl, 0x2f
jne 0x40af80
dec eax
cmp eax, 0x104
jae 0x40b3cc
mov byte [eax + 0x48adf0], 0
mov ecx, dword [0x489fe0]
push 0x43e32c
push 0x48adf0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x488c44
push str.hw.dll
push str.EngineDLL
call dword [eax + 0x14]
push str.hw.dll
mov byte [0x48a2e8], 0
call esi
mov ebx, eax
test ebx, ebx
je 0x40b33f
push 0x43c328
push ebx
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 0x40afea
test eax, eax
jne 0x40afff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40b387
jmp 0x40b003
mov esi, dword [esp + 0x10]
mov ecx, ebx
call fcn.004060d0
push 0x104
lea eax, [esp + 0x11c4]
mov byte [esp + 0x11c4], 0
push eax
push 0
mov byte [0x48ace8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40b0ef
push 0x104
push 0x48ace8
lea eax, [esp + 0x11c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push 0x5c
push 0x48ace8
call fcn.00411820
add esp, 8
cmp byte [eax], 0
je 0x40b066
mov byte [eax + 1], 0
mov ecx, 0x48ace8
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b070
sub ecx, edx
test ecx, ecx
jle 0x40b09f
mov al, byte [ecx + 0x48ace7]
cmp al, 0x5c
je 0x40b08b
cmp al, 0x2f
jne 0x40b09f
dec ecx
cmp ecx, 0x104
jae 0x40b3cc
mov byte [ecx + 0x48ace8], 0
push 0x5c
push 0x48ace8
call fcn.00411820
add esp, 8
cmp byte [eax], 0
je 0x40b0b7
mov byte [eax + 1], 0
mov ecx, 0x48ace8
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b0c0
sub ecx, edx
test ecx, ecx
jle 0x40b0ef
mov al, byte [ecx + 0x48ace7]
cmp al, 0x5c
je 0x40b0db
cmp al, 0x2f
jne 0x40b0ef
dec ecx
cmp ecx, 0x104
jae 0x40b3cc
mov byte [ecx + 0x48ace8], 0
push 0x43c328
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esi]
mov ecx, 0x488c3c
push eax
mov eax, dword [vtable.CCommandLine.0]
push sym.CSOLauncher.exe_CreateInterface
push 0x48a2e8
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
push 0x48ace8
push dword [esp + 0x30]
call dword [esi + 4]
mov ecx, dword [0x489fdc]
mov edi, eax
test ecx, ecx
je 0x40b14e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
nop word [eax + eax]
mov esi, dword [ecx + 0x20]
call fcn.0040a600
mov ecx, esi
test esi, esi
jne 0x40b140
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
mov dword [0x489fdc], 0
call esi
test edi, edi
je 0x40b387
cmp edi, 2
jg 0x40b387
xor bl, bl
sub edi, 1
je 0x40b199
sub edi, 1
jne 0x40b19b
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 bl
jmp 0x40b19b
mov bl, 1
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push 0x43e3c8
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._startwindowed
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._windowed
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._window
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._full
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._fullscreen
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._soft
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._software
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push 0x43e418
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._d3d
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push 0x43e424
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._width
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push 0x43e430
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._height
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._novid
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str.connect
call dword [eax + 0xc]
push str._game
push 0x48a2e8
call fcn.00411390
add esp, 8
test eax, eax
je 0x40b2e3
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str._game
call dword [eax + 0xc]
push str.load
push 0x48a2e8
call fcn.00411390
add esp, 8
test eax, eax
je 0x40b30b
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push str.load
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x488c3c
push 0
push 0x48a2e8
call dword [eax + 0x10]
mov ecx, dword [0x489fe0]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esp + 0x14]
call esi
test bl, bl
je 0x40b387
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x40aeb2
push str.hw.dll
push str.Could_not_load_engine_:__s.
push 0x48a0e8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Fatal_Error
push 0x48a0e8
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, 0x488c44
call dword [eax + 4]
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x40b3aa
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.0040f2b7
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040f3ed
int3