Function at 0x401000
Capabilities:
Terminate process

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
push str.CNS_DEBUG
mov ebp, 0x5695
mov dword [esp + 0x14], 0x5696
call fcn.00463afa
mov edi, dword [esp + 0xe8]
mov ebx, dword [esp + 0xe4]
add esp, 4
test eax, eax
jne 0x40106a
push 1
push 0x479098
push edi
push ebx
call fcn.004219a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40106a
mov eax, dword [str.cns_main.c]
push 0x54
push eax
call fcn.0041cc10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
cmp ebx, 1
jle 0x40107d
mov ecx, dword [edi + 4]
push ecx
call fcn.00463aef
add esp, 4
mov ebp, eax
cmp ebx, 2
jle 0x401092
mov edx, dword [edi + 8]
push edx
call fcn.00463aef
add esp, 4
mov dword [esp + 0x10], eax
push 0x4dfaac
push 0x4dfab0
push 0x4dfab8
push 0x4dfaa4
push 0x4dfaa8
push 0x4dfab4
push 0x4dfabc
push 0x4dfaa0
call 0x4e73d2
add esp, 0x20
call fcn.004013b0
test eax, eax
je 0x4010d4
push eax
call fcn.00401340
add esp, 4
mov eax, dword [0x4dfaa4]
mov ecx, dword [0x4dfaa8]
mov edx, dword [0x4dfab4]
push eax
mov eax, dword [0x4dfabc]
push ecx
mov ecx, dword [0x4dfaa0]
push edx
push eax
push ecx
push str.___G:_s90_cns_cns_main.c___GENERAL___108___cns_version:__s._s._s__s__s
push 0x4790e8
call fcn.0041b0a0
add esp, 0x1c
push str.cns_start_lock
push str..locks
call fcn.00415a80
push eax
lea edx, [esp + 0x20]
push 0x479108
push edx
call fcn.00463a12
lea eax, [esp + 0x28]
push 0x500
push eax
call fcn.004671ce
add esp, 0x1c
test eax, eax
jge 0x401163
cmp dword [0x4d9f94], 0x11
jne 0x401163
lea ecx, [esp + 0x14]
push ecx
push str.___G:_s90_cns_cns_main.c___GENERAL___122___CNS_already_started___nThis_error_occurs_when_there_is_na_simultaneous_startup_of_more_than_one_server_nif_this_is_not_the_case__remove_the_file__s_n
push 0x4791d8
call fcn.0041b0a0
add esp, 0xc
push 1
call fcn.0046393d
push 0x4aac14
push 0x4aac0c
push 0
push 0x4791e0
call fcn.00431ad0
add esp, 0x10
test eax, eax
jne 0x4011a3
push str.___G:_s90_cns_cns_main.c___GENERAL___134___CNS_already_running___n
push 0x479234
call fcn.0041b0a0
lea edx, [esp + 0x1c]
push edx
call fcn.00467c32
add esp, 0xc
push 1
call fcn.0046393d
push 0x4aac14
push 0x4aac0c
push 0x401300
push 0
push ebp
push str.cns_sync
call fcn.00430590
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4011db
lea eax, [esp + 0x14]
push eax
call fcn.00467c32
push esi
call fcn.00401340
add esp, 8
mov ecx, dword [esp + 0x10]
push 0x4aac10
push 0x4aac28
push 0x401320
push 0
push ecx
push str.cns_async
call fcn.00430590
mov esi, eax
add esp, 0x18
test esi, esi
je 0x401217
lea edx, [esp + 0x14]
push edx
call fcn.00467c32
push esi
call fcn.00401340
add esp, 8
lea eax, [esp + 0x14]
push eax
call fcn.00467c32
add esp, 4
call fcn.00401710
mov esi, eax
test esi, esi
je 0x401250
mov ecx, dword [str.cns_main.c]
push 0xa3
push ecx
call fcn.0041cc10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
call fcn.00409d90
mov esi, eax
test esi, esi
je 0x40127c
mov edx, dword [str.cns_main.c]
push 0xa7
push edx
call fcn.0041cc10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov eax, dword [0x479070]
push 0x4012d0
push eax
push 0x401700
call fcn.004321c0
add esp, 0xc
test eax, eax
je 0x4012a1
push eax
call fcn.00401340
add esp, 4
mov ecx, dword [str.cns_main.c]
push 0xae
push ecx
push 0x479254
call fcn.0041cad0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret