Function at 0x401254
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x110
push 1
push 1
call fcn.00401eb2
call fcn.00401ee7
call fcn.00401f7f
call fcn.00401f90
mov byte [rbp - 1], al
push 0x11
push str.planet_server.ini
push 6
push 0x6e0716
push 4
push 0x6e0bc7
push 0x40
lea rax, [rbp - 0xc0]
push rax
push 1
push 0x6e0bce
call fcn.0040226a
push 0x40
lea rax, [rbp - 0xc0]
push rax
push 2
push 0x6eabe0
mov dword [rbp - 0xc8], 2
lea rax, [rbp - 4]
mov qword [rbp - 0xd0], rax
push 1
lea rax, [rbp - 0xd0]
push rax
call fcn.004023f2
cmp eax, 0
jne 0x4012f7
movzx eax, word [rbp - 4]
cmp eax, 0x32c8
jb 0x4012f7
movzx eax, word [rbp - 4]
cmp eax, 0x3e80
jb 0x4012fd
mov word [rbp - 4], 0x32c8
push 0x78
lea rax, [rbp - 0x80]
push rax
push 0x11
push str.planet_server.tra
push 0
push rbp
call fcn.00402463
push 0x11
push str.planet_server.ini
push 8
push str.settingstrace
push 5
push 0x6eac80
push 0x20
lea rax, [rbp - 0xe0]
push rax
push 0
push 0x6e0730
call fcn.0040226a
push rax
movzx eax, byte [rbp - 0xe0]
push rax
call fcn.004024c1
pop rcx
cmp eax, 0x59
jne 0x4013e7
push 0x78
lea rax, [rbp - 0x80]
push rax
push 0x10000000
push 1
push 1
push 1
call fcn.004024ea
push 0x54
push 0x6eac90
push 0
push rbp
call fcn.0040280b
push 0x1c
push str.planet_server_version__u._u_n
mov dword [rbp - 0xf8], 2
mov qword [rbp - 0x100], 0x6eb2a0
mov dword [rbp - 0xe8], 2
mov qword [rbp - 0xf0], 0x6ead12
push 2
lea rax, [rbp - 0x100]
push rax
call fcn.0040280b
push 0x1a
push str.info:_listening_on_udp__u_n
mov dword [rbp - 0xe8], 2
lea rax, [rbp - 4]
mov qword [rbp - 0xf0], rax
push 1
lea rax, [rbp - 0xf0]
push rax
call fcn.0040280b
push 0x11
push str.planet_server.ini
push 8
push str.settingstrace
push 0xd
push str.crash_reports
push 0x10
lea rax, [rbp - 0xd0]
push rax
push 2
push 0x6e0333
call fcn.0040226a
movzx eax, byte [rbp - 0xd0]
cmp eax, 0x79
jne 0x401423
call fcn.00402c52
push 0x11
push str.planet_server.ini
push 8
push str.settingstrace
push 0xc
push str.upgrade_only
push 0x10
lea rax, [rbp - 0xd0]
push rax
push 2
push 0x6e0333
call fcn.0040226a
movzx eax, byte [rbp - 0xd0]
cmp eax, 0x79
jne 0x401461
mov byte [0x009d6030], 1
push 0x78
lea rax, [rbp - 0x80]
push rax
push 0x19
push str.planet_server_database.db.OLD_BACKUP
push 0
push rbp
call fcn.00402463
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.00402c6b
cmp eax, 0
jne 0x40170b
call fcn.004030b8
mov qword [rbp - 0xc8], rax
push 0x29
push str.info:_number_of_transactions_so_far_:__d_n
mov dword [rbp - 0xd8], 8
lea rax, [rbp - 0xc8]
mov qword [rbp - 0xe0], rax
push 1
lea rax, [rbp - 0xe0]
push rax
call fcn.0040280b
call fcn.004030e0
cmp eax, 0
jne 0x40170d
cmp qword [rbp - 0xc8], 0x989680
jle 0x40155a
push rax
lea rax, [rbp - 0xe8]
push rax
call fcn.004030f3
pop rcx
push 0x20
lea rax, [rbp - 0xe8]
push rax
push 3
push 0x6f072c
call fcn.00403132
cmp eax, 0
je 0x40155a
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.00403281
mov dword [rbp - 8], eax
push 0xf
push str.defrag__s_:__d_n
mov dword [rbp - 0x108], 0x78
lea rax, [rbp - 0x80]
mov qword [rbp - 0x110], rax
mov dword [rbp - 0xf8], 4
lea rax, [rbp - 8]
mov qword [rbp - 0x100], rax
push 2
lea rax, [rbp - 0x110]
push rax
call fcn.0040280b
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.00402c6b
cmp eax, 0
jne 0x40170f
push rax
push qword [0x009d6034]
push 0x3b
push 0x9d6040
call fcn.004032ab
pop rcx
call fcn.004032f9
movzx eax, word [rbp - 4]
push rax
push 0
call fcn.00403454
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x4015d1
push 0x1e
push str.error:_init_net___returned__d_n
mov dword [rbp - 0xc8], 4
lea rax, [rbp - 8]
mov qword [rbp - 0xd0], rax
push 1
lea rax, [rbp - 0xd0]
push rax
call fcn.0040280b
push rax
push 0xffffffffffffffff
call fcn.00401d09
pop rcx
call fcn.004037c5
call fcn.0040385d
call fcn.00403921
call fcn.004039e5
call fcn.00403a88
call fcn.00403beb
call fcn.00403cf0
call fcn.00403e03
call fcn.00403ec4
call fcn.00403fc0
call fcn.004046e1
call fcn.00404829
call fcn.00404889
call fcn.004048fa
call fcn.0040496b
call fcn.00404985
call fcn.00404afa
push rax
movzx eax, word [rbp - 4]
push rax
call fcn.00404b24
pop rcx
call fcn.00404bd6
push 0x22
push str.info:_starting_channel_threads_.._n
push 0
push rbp
call fcn.0040280b
call fcn.00404bfc
call fcn.00404e59
call fcn.00404ecf
call fcn.00404f7a
call fcn.00405040
test byte [rbp - 1], 0xff
jne 0x40166a
call fcn.00405094
test byte [rbp - 1], 0xff
je 0x40167f
push 0x16
push str._SERVER_UPGRADE_
push 0
push rbp
call fcn.004051f8
push 0x22
push str._SERVER_VERSION__u_STARTING_
mov dword [rbp - 0xc8], 2
mov qword [rbp - 0xd0], 0x6eb2a0
push 1
lea rax, [rbp - 0xd0]
push rax
call fcn.004051f8
movzx eax, word [rbp - 4]
mov ebx, 0x3e8
cdq
idiv ebx
mov eax, edx
mov ebx, 0x18
cdq
idiv ebx
mov dword [rbp - 0xc4], edx
push rax
mov eax, dword [rbp - 0xc4]
add eax, 4
imul eax, eax, 0x3c
push rax
call fcn.00405285
pop rcx
push rax
mov eax, dword [rbp - 0xc4]
add eax, 5
imul eax, eax, 0x3c
push rax
call fcn.00405285
pop rcx
call fcn.004052f3
call fcn.00403e03
push rax
mov eax, dword [rbp - 0xc4]
imul eax, eax, 0x3c
push rax
call fcn.00405285
pop rcx
jmp 0x4016c6
int 5
int 5
int 5