Function at 0x14002a750
Capabilities:
Set current directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rdi, rcx
mov r14, qword [rsp + 0x150]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
mov r12, qword [r14 + 8]
movzx ecx, byte [r12]
mov al, 2
test cl, cl
je 0x14002a7a0
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rsp + 0x148]
mov r13, qword [rsp + 0x140]
shr rdi, 1
cmp rdi, r9
jae 0x14002a8fe
shl rbp, 4
lea rsi, [rsp + 0x30]
lea rbx, [rsp + 0x60]
jmp 0x14002a809
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, r15
call fcn.14029804c
dec r14
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, r14
call fcn.14029804c
mov rbx, rdi
add r13, 0x10
movzx eax, byte [r12]
add rbp, 0xfffffffffffffff0
test al, al
jne 0x14002a923
test rbp, rbp
je 0x14002a923
mov rax, qword [r13]
mov rcx, qword [r13 + 8]
add rcx, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov word [rsp + 0x70], 0
mov rcx, rsi
mov rdx, rbx
call fcn.14026df20
mov rdx, qword [rsp + 0x40]
cmp rdx, qword [rsp + 0x30]
jne 0x14002a852
mov rcx, rsi
call fcn.140245aa0
mov rdx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
mov word [r15 + rdx*2], 0
mov rcx, r15
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x14002a8e0
xor r14d, r14d
cmp qword [rsp + 0x30], 0
je 0x14002a886
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, r15
call fcn.14029804c
test r14, r14
je 0x14002a938
mov eax, r14d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14002a7f4
test rax, rax
je 0x14002a7f4
mov rdi, rbx
mov r15, qword [r14 - 1]
mov rbx, qword [r14 + 7]
mov rcx, r15
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x14002a7dd
cmp qword [rbx + 0x10], 0x11
jb 0x14002a7cc
mov r15, qword [r15 - 8]
jmp 0x14002a7cc
call sub.kernel32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
cmp qword [rsp + 0x30], 0
jne 0x14002a875
jmp 0x14002a886
mov rbx, r8
test dl, dl
je 0x14002a92a
call fcn.140006d00
test rax, rax
je 0x14002aac4
mov rax, qword [rax]
test rax, rax
je 0x14002a953
add rax, 0x110
jmp 0x14002a958
mov al, 2
jmp 0x14002a78c
test rbx, rbx
je 0x14002a7bc
shr rbx, 1
jmp 0x14002a96c
movzx eax, byte [r12]
test al, al
mov al, 2
jne 0x14002a78c
mov byte [r12], 1
mov al, 1
jmp 0x14002a78c
call fcn.1401060d0
mov rax, qword [rax]
mov rax, qword [rax + 0x210]
shr rbx, 1
cmp rax, rbx
cmova rbx, rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rdi
sub rbp, rdi
jb 0x14002aaac
mov rax, rdi
shl rax, 4
add rax, r13
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x60], r8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x68], r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], r8
mov qword [rsp + 0xa8], r9
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xd0], rdx
call fcn.140006d00
test rax, rax
je 0x14002aa83
mov rdx, qword [rax]
test rdx, rdx
jne 0x14002aa40
call fcn.1401060d0
mov rsi, qword [rax]
call fcn.140006d00
test rax, rax
je 0x14002aa83
mov rdx, qword [rax]
test rdx, rdx
je 0x14002aa5d
cmp qword [rdx + 0x110], rsi
jne 0x14002aa70
lea rcx, [rsp + 0x60]
xor r8d, r8d
call fcn.1400018b0
cmp al, 2
movzx ecx, al
movzx eax, dl
cmovne eax, ecx
jmp 0x14002a78c
sub rsi, 0xffffffffffffff80
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400085b0
jmp 0x14002aa4d
sub rsi, 0xffffffffffffff80
lea r8, [rsp + 0x60]
mov rcx, rsi
call fcn.14000a050
jmp 0x14002aa4d
lea rax, [0x14036b330]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
lea r9, [0x1402a6f48]
lea r8, [rsp + 0x2f]
mov edx, 0x46
call fcn.1400ad960
lea rcx, str.assertion_failed:_mid___self.len__
lea r8, str._home_hj_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_1.8.1_src_slice_mod.rs
mov edx, 0x23
call fcn.1400abba0
lea rax, [0x14036b330]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
lea r9, [0x1402faeb8]
lea r8, [rsp + 0x2f]
mov edx, 0x46
call fcn.1400ad960
mov rsi, rax
cmp qword [rsp + 0x30], 0
je 0x14002ab0b
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x1403ac160]
xor edx, edx
call fcn.14029804c
mov rcx, rsi
call fcn.1402985f0
int3