Function at 0x62ee5c
Capabilities:
Set current directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rbx, rcx
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x38], 0
lea r8, [r11 + 0x10]
lea rdx, str.___________database_analysis_started
lea rcx, [rsp + 0x70]
call fcn.004021a8
nop
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, qword [0x00862cd0]
call fcn.00415954
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x62eefb
test rcx, rcx
je 0x62eefb
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov edi, 0x100
cmp rdx, rdi
jbe 0x62eef4
call fcn.006a4944
jmp 0x62ef00
call fcn.006a3610
jmp 0x62ef00
mov edi, 0x100
lea r8, str.gl2.test.db3
lea rdx, [0x0085e958]
lea rcx, [rsp + 0x70]
call fcn.00402658
nop
lea rcx, [rsp + 0x38]
cmp rax, rcx
je 0x62ef36
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
lea rcx, [rsp + 0x38]
call fcn.0040289c
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x62ef67
test rcx, rcx
je 0x62ef67
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, rdi
jbe 0x62ef61
call fcn.006a4944
jmp 0x62ef67
call fcn.006a3610
nop
add rbx, 0x20
mov qword [rsp + 0x138], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, str.gl2.db3
lea rdx, [0x0085e958]
lea rcx, [rsp + 0x70]
call fcn.00402658
nop
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.00594da4
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x62efd4
test rcx, rcx
je 0x62efd4
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, rdi
jbe 0x62efcf
call fcn.006a4944
jmp 0x62efd4
call fcn.006a3610
lea rdx, [0x0085e988]
lea rcx, [rsp + 0x70]
call fcn.00401f00
mov rcx, qword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r11, [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
cmp rcx, r11
je 0x62f026
test rcx, rcx
je 0x62f026
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, rdi
jbe 0x62f021
call fcn.006a4944
jmp 0x62f026
call fcn.006a3610
lea rcx, [rsp + 0x38]
call fcn.005950f4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8d, [r9 + 6]
lea rdx, [rsp + 0x30]
lea rcx, str.Settings_gl2.test.db3
call fcn.0069d070
test eax, eax
je 0x62f07e
lea rdx, str.unable_to_open_database
lea rcx, [rsp + 0xd0]
call fcn.0065e880
lea rdx, [0x008510e0]
lea rcx, [rsp + 0xd0]
call fcn.006ab82c
xor r8d, r8d
lea rdx, str.database_slack
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.HASH
lea rdx, str.segment_hashes
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.FILEOBJ
lea rdx, str.file_and_directory_paths
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.TRANSFER
lea rdx, str.transfer_logs
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.IPLOG
lea rdx, str.ip_history
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.MESSAGE
lea rdx, str.tth_comments
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.TTHUPLOAD
lea rdx, str.tth_upload_ratio
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.IPRATIO
lea rdx, str.ip_ratio
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.PEER
lea rdx, str.users__last_ip_and_ratio_
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.DLSOURCE
lea rdx, str.download_sources
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.DLQUEUE
lea rdx, str.download_queue
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
lea r8, str.ROOT
lea rdx, str.tth_roots
lea rcx, [rsp + 0x20]
call fcn.0062ed1c
xor r8d, r8d
lea rdx, str.other
lea rcx, [rsp + 0x20]
call fcn.0062ea60
lea rcx, [rsp + 0x30]
call fcn.0065e9bc
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x62f1ca
lea rcx, [rsp + 0x38]
call fcn.00594f58
lea r8, [rsp + 0x138]
lea rdx, str.___________database_analysis_finished
lea rcx, [rsp + 0x70]
call fcn.004021a8
nop
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, qword [0x00862cd0]
call fcn.00415954
nop
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
je 0x62f234
test rcx, rcx
je 0x62f234
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
cmp rdx, rdi
jbe 0x62f22e
call fcn.006a4944
jmp 0x62f234
call fcn.006a3610
nop
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x62f262
test rcx, rcx
je 0x62f262
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
cmp rdx, rdi
jbe 0x62f25c
call fcn.006a4944
jmp 0x62f262
call fcn.006a3610
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x62f271
call fcn.0069c52c
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret