Function at 0x401711
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x710
push 1
push 1
call fcn.00401eb2
call fcn.004054fc
call fcn.00401ee7
call fcn.00405546
mov byte [0x009d612c], 1
call fcn.00405744
call fcn.00401f7f
call fcn.00405754
push 0x78
lea rax, [rbp - 0xa0]
push rax
push 0xa
push str.planet.tra
push 0
push rbp
call fcn.00402463
push 0xa
push str.planet.ini
push 8
push str.settingstrace
push 5
push 0x6eac80
push 0x20
lea rax, [rbp - 0x20]
push rax
push 0
push 0x6e0730
call fcn.0040226a
push rax
movzx eax, byte [rbp - 0x20]
push rax
call fcn.004024c1
pop rcx
cmp eax, 0x59
jne 0x401805
push 0x78
lea rax, [rbp - 0xa0]
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 0x23
push str.planet_client_version__u._u_64bits_n
mov dword [rbp - 0xb8], 2
mov qword [rbp - 0xc0], 0x6eb2a0
mov dword [rbp - 0xa8], 2
mov qword [rbp - 0xb0], 0x6ead12
push 2
lea rax, [rbp - 0xc0]
push rax
call fcn.0040280b
push 0xa
push str.planet.ini
push 8
push str.settingstrace
push 0x12
push str.search_all_planets
push 0x20
lea rax, [rbp - 0x20]
push rax
push 0
push 0x6e0730
call fcn.0040226a
push rax
movzx eax, byte [rbp - 0x20]
push rax
call fcn.004024c1
pop rcx
cmp eax, 0x4e
jne 0x401845
mov byte [0x009d612d], 1
cmp dword [rbp + 0x18], 1
jle 0x4018b6
push rax
mov eax, 1
cmp eax, dword [rbp + 0x18]
jae 0x401ba5
mov rbx, qword [rbp + 0x10]
shl eax, 4
mov esi, dword [rbx + rax + 8]
push rsi
push qword [rbx + rax]
lea rax, [rbp - 0x710]
push rax
call fcn.00405934
pop rcx
cmp eax, 0
jne 0x4018b6
push rax
push 0x104
push 0x9d6130
mov eax, 1
cmp eax, dword [rbp + 0x18]
jae 0x401ba7
mov rbx, qword [rbp + 0x10]
shl eax, 4
mov esi, dword [rbx + rax + 8]
push rsi
push qword [rbx + rax]
push 0x104
call fcn.0040597f
pop rcx
mov byte [0x009d6234], 1
push 0x78
lea rax, [rbp - 0x80]
push rax
push 0xc
push str.INVENTORY.DB
push 0
push rbp
call fcn.00402463
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.00405a0a
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x4018f1
cmp dword [rbp - 4], 0xffffffe0
je 0x4018f1
cmp dword [rbp - 4], 0xffffffdf
jne 0x401ba9
cmp dword [rbp - 4], 0xffffffe0
je 0x4018fd
cmp dword [rbp - 4], 0xffffffdf
jne 0x401906
call fcn.00405e06
leave
ret 0x10
call fcn.00405e64
mov eax, dword [0x009d63fc]
mov dword [rbp - 0x84], eax
cmp dword [rbp - 0x84], 1
jl 0x401929
cmp dword [rbp - 0x84], 4
jle 0x401933
mov dword [rbp - 0x84], 1
push rax
push qword [rbp - 0x84]
call fcn.00406085
pop rcx
test byte [0x009d63d4], 0xff
jne 0x40195a
mov byte [0x009d63d4], 1
call fcn.004060c2
call fcn.00406131
push rax
lea rax, [rbp - 0xa0]
push rax
call fcn.004030f3
pop rcx
push 0x20
push 0x9d6306
push 0x20
lea rax, [rbp - 0xa0]
push rax
call fcn.004061ae
cmp eax, 0
je 0x4019c6
mov rax, qword [rbp - 0xa0]
mov rbx, qword [rbp - 0x98]
mov rsi, qword [rbp - 0x90]
mov rdi, qword [rbp - 0x88]
mov qword [0x009d6306], rax
mov qword [0x009d630e], rbx
mov qword [0x009d6316], rsi
mov qword [0x009d631e], rdi
call fcn.004060c2
call fcn.00406131
push rax
push 0x9d6404
call fcn.004062c2
pop rcx
cmp dword [0x009d6404], 0
jne 0x4019fb
mov dword [0x009d6269], 0x100
mov dword [0x009d62cc], 9
mov byte [0x009d63ed], 1
call fcn.00406131
test byte [0x009d6271], 0xff
je 0x401a72
call fcn.004062ec
call fcn.004062ff
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.00403281
mov dword [rbp - 4], eax
push 0xf
push str.defrag__s_:__d_n
mov dword [rbp - 0x98], 0x78
lea rax, [rbp - 0x80]
mov qword [rbp - 0xa0], rax
mov dword [rbp - 0x88], 4
lea rax, [rbp - 4]
mov qword [rbp - 0x90], rax
push 2
lea rax, [rbp - 0xa0]
push rax
call fcn.0040280b
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.00405a0a
cmp eax, 0
jne 0x401bab
call fcn.0040635d
push 0xf
push str.client_cache.db
call fcn.00406a6c
call fcn.00406b92
call fcn.004081dd
push 0x78
lea rax, [rbp - 0x80]
push rax
push 0xf
push str.client_cache.db
push 0
push rbp
call fcn.00402463
test byte [0x009d6271], 0xff
je 0x401afb
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.00403281
mov dword [rbp - 4], eax
push 0xf
push str.defrag__s_:__d_n
mov dword [rbp - 0x98], 0x78
lea rax, [rbp - 0x80]
mov qword [rbp - 0xa0], rax
mov dword [rbp - 0x88], 4
lea rax, [rbp - 4]
mov qword [rbp - 0x90], rax
push 2
lea rax, [rbp - 0xa0]
push rax
call fcn.0040280b
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.004082a8
movabs rbx, 0x3c0000000
cmp rax, rbx
jge 0x401b27
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.004082e1
call fcn.0040831a
push 0x78
lea rax, [rbp - 0x80]
push rax
call fcn.00408360
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x401b48
cmp dword [rbp - 4], 0xffffffe0
je 0x401b48
cmp dword [rbp - 4], 0xffffffdf
jne 0x401bad
cmp dword [rbp - 4], 0xffffffe0
je 0x401b54
cmp dword [rbp - 4], 0xffffffdf
jne 0x401b5d
call fcn.00405e06
leave
ret 0x10
call fcn.004087f9
call fcn.00408ef8
call fcn.00409251
test byte [0x009d6271], 0xff
je 0x401b81
mov byte [0x009d6271], 0
call fcn.00406131
call fcn.00409794
call fcn.00409865
call fcn.004098d5
call fcn.00409968
push rax
push 0x409beb
call fcn.00409bd9
pop rcx
leave
ret 0x10
int 5
int 5
int 5
int 5
int 5