Function at 0x40b600
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.004324c0
mov eax, dword [0x443040]
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 0x40b6ae
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 0x40b699
push str.The_low_fragmentation_heap_has_been_enabled._n
call fcn.00401a70
add esp, 4
jmp 0x40b6a9
call ebx
push eax
push str.Failed_to_enable_the_low_fragmentation_heap___d._n
call fcn.00401a70
add esp, 8
inc esi
cmp esi, edi
jb 0x40b670
mov esi, dword [vtable.CCommandLine.0]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, 0x48b974
call dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x43f4dc
push str.kernel32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
call eax
test eax, eax
jne 0x40b74c
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._nomutex
call dword [eax + 8]
test eax, eax
jne 0x40b74c
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 0x40b74c
cmp eax, 0x80
je 0x40b74c
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.0040fc87
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, 0x48b97c
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.004121f0
push str.hl.exe
lea esi, [eax + 1]
push esi
call fcn.0041cce0
add esp, 0x10
test eax, eax
je 0x40b7e1
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push 0
push str._game
call dword [eax + 8]
test eax, eax
jne 0x40b7e1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b7c1
sub ecx, edx
push esi
push str._game
mov byte [ecx + esi - 4], al
mov ecx, 0x48b974
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, 0x48b974
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 0x48cd68
call fcn.0041b1c0
add esp, 0xc
mov byte [0x48cd87], 0
test esi, esi
je 0x40b853
push 5
lea eax, [esi + 6]
push str.czero
push eax
call fcn.0041cdb9
add esp, 0xc
test eax, eax
jne 0x40b853
push eax
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._forcevalve
call dword [eax + 0x10]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push 0
push str._lang
call dword [eax + 8]
test eax, eax
jne 0x40b882
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push 0x43f5a0
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 0x40bd43
push 0x43d328
push edi
call ebx
push 0
push str.VFileSystem009
call eax
add esp, 8
mov dword [0x48cd14], 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 [0x48db20], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40b950
push 0x104
push 0x48db20
lea eax, [esp + 0x11c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push 0x5c
push 0x48db20
call fcn.004121f0
add esp, 8
cmp byte [eax], 0
je 0x40b915
mov byte [eax + 1], 0
mov eax, 0x48db20
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b920
sub eax, edx
test eax, eax
jle 0x40b950
mov cl, byte [eax + 0x48db1f]
cmp cl, 0x5c
je 0x40b93d
cmp cl, 0x2f
jne 0x40b950
dec eax
cmp eax, 0x104
jae 0x40bd9c
mov byte [eax + 0x48db20], 0
mov ecx, dword [0x48cd14]
push 0x43f5b4
push 0x48db20
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [vtable.CRegistry.0]
mov ecx, 0x48b97c
push str.hw.dll
push str.EngineDLL
call dword [eax + 0x14]
push str.hw.dll
mov byte [0x48d018], 0
call esi
mov ebx, eax
test ebx, ebx
je 0x40bd0f
push 0x43d328
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 0x40b9ba
test eax, eax
jne 0x40b9cf
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40bd57
jmp 0x40b9d3
mov esi, dword [esp + 0x10]
mov ecx, ebx
call fcn.004067f0
push 0x104
lea eax, [esp + 0x11c4]
mov byte [esp + 0x11c4], 0
push eax
push 0
mov byte [0x48da18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40babf
push 0x104
push 0x48da18
lea eax, [esp + 0x11c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push 0x5c
push 0x48da18
call fcn.004121f0
add esp, 8
cmp byte [eax], 0
je 0x40ba36
mov byte [eax + 1], 0
mov ecx, 0x48da18
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ba40
sub ecx, edx
test ecx, ecx
jle 0x40ba6f
mov al, byte [ecx + 0x48da17]
cmp al, 0x5c
je 0x40ba5b
cmp al, 0x2f
jne 0x40ba6f
dec ecx
cmp ecx, 0x104
jae 0x40bd9c
mov byte [ecx + 0x48da18], 0
push 0x5c
push 0x48da18
call fcn.004121f0
add esp, 8
cmp byte [eax], 0
je 0x40ba87
mov byte [eax + 1], 0
mov ecx, 0x48da18
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ba90
sub ecx, edx
test ecx, ecx
jle 0x40babf
mov al, byte [ecx + 0x48da17]
cmp al, 0x5c
je 0x40baab
cmp al, 0x2f
jne 0x40babf
dec ecx
cmp ecx, 0x104
jae 0x40bd9c
mov byte [ecx + 0x48da18], 0
push 0x43d328
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esi]
mov ecx, 0x48b974
push eax
mov eax, dword [vtable.CCommandLine.0]
push sym.CSOLauncher.exe_CreateInterface
push 0x48d018
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
push 0x48da18
push dword [esp + 0x30]
call dword [esi + 4]
mov ecx, dword [0x48cd10]
mov edi, eax
test ecx, ecx
je 0x40bb1e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
nop word [eax + eax]
mov esi, dword [ecx + 0x20]
call fcn.0040afd0
mov ecx, esi
test esi, esi
jne 0x40bb10
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
mov dword [0x48cd10], 0
call esi
test edi, edi
je 0x40bd57
cmp edi, 2
jg 0x40bd57
xor bl, bl
sub edi, 1
je 0x40bb69
sub edi, 1
jne 0x40bb6b
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 0x40bb6b
mov bl, 1
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push 0x43f650
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._startwindowed
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._windowed
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._window
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._full
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._fullscreen
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._soft
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._software
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push 0x43f6a0
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._d3d
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push 0x43f6ac
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._width
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push 0x43f6b8
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._height
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._novid
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str.connect
call dword [eax + 0xc]
push str._game
push 0x48d018
call fcn.00411d60
add esp, 8
test eax, eax
je 0x40bcb3
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str._game
call dword [eax + 0xc]
push str.load
push 0x48d018
call fcn.00411d60
add esp, 8
test eax, eax
je 0x40bcdb
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push str.load
call dword [eax + 0xc]
mov eax, dword [vtable.CCommandLine.0]
mov ecx, 0x48b974
push 0
push 0x48d018
call dword [eax + 0x10]
mov ecx, dword [0x48cd14]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esp + 0x14]
call esi
test bl, bl
je 0x40bd57
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x40b882
push str.hw.dll
push str.Could_not_load_engine_:__s.
push 0x48ce18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Fatal_Error
push 0x48ce18
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, 0x48b97c
call dword [eax + 4]
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x40bd7a
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.0040fc87
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040fdbd
int3