Function at 0x140005044
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
mov rsi, rcx
cmp qword [rcx], 0
je 0x14000522d
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400046bd
cmp dword [rdi], 4
je 0x14000522d
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rcx], xmm0
lea rax, [rsp + 0x98]
mov qword [rax], rcx
lea rcx, [0x140006b7c]
mov qword [rax + 8], rcx
lea rcx, str.ZipWriter_drop_failed:
mov qword [rsp + 0x50], rcx
mov ecx, 1
mov qword [rsp + 0x58], rcx
and qword [rsp + 0x70], 0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov ecx, dword [0x140354128]
test ecx, ecx
je 0x140005291
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x1400052a4
mov rax, qword [0x140354158]
cmp rdi, rax
jne 0x14000510b
mov eax, dword [0x140354160]
cmp eax, 0xffffffff
je 0x1400052c2
inc eax
jmp 0x140005129
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x140354164], cl
jne 0x1400052b1
mov qword [0x140354158], rdi
mov eax, 1
mov dword [0x140354160], eax
lea rax, [0x140354158]
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
lea rdi, [rsp + 0x30]
mov qword [rdi - 8], rcx
and qword [rdi], 0
lea rdx, [0x14030f2d8]
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x50]
call fcn.140040000
mov r14, qword [rsp + 0x30]
test al, al
je 0x1400051a6
test r14, r14
jne 0x1400051ed
lea rax, str.0W1_
lea rcx, [rsp + 0xa8]
mov qword [rcx], rax
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, [0x14030fc80]
call fcn.14003f140
ud2
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x1400051ea
lea rdi, [r14 - 1]
mov rbx, qword [r14 - 1]
mov r14, qword [r14 + 7]
mov rax, qword [r14]
test rax, rax
je 0x1400051ca
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x1400051dd
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140019a50
mov edx, 8
mov rcx, rdi
call fcn.140019a50
xor r14d, r14d
mov rcx, qword [rsp + 0x20]
dec dword [rcx + 8]
jne 0x140005210
mov qword [rcx], 0
xor eax, eax
xchg byte [rcx + 0xc], al
cmp al, 2
jne 0x140005210
add rcx, 0xc
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
lea rcx, [rsp + 0xa8]
mov qword [rcx], r14
call fcn.14000657d
lea rcx, [rsp + 0x80]
call fcn.140005928
mov rcx, rsi
call fcn.140004fe1
mov rdi, qword [rsi + 0x78]
mov rbx, qword [rsi + 0x80]
sub rbx, 1
jb 0x140005257
mov rcx, rdi
call fcn.140005938
add rdi, 0xb0
jmp 0x140005240
mov rcx, qword [rsi + 0x70]
mov rdx, qword [rsi + 0x78]
mov r8d, 8
mov r9d, 0xb0
call fcn.140173432
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
call fcn.140173443
nop
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140354110]
call fcn.14012f090
mov ecx, eax
jmp 0x1400050db
call fcn.1401308d0
mov rdi, rax
jmp 0x1400050ec
lea rcx, [0x140354164]
call fcn.140134a00
jmp 0x14000511d
lea rcx, str.lock_count_overflow_in_reentrant_mutexstd_src_sync_reentrant_lock.rs
lea r8, [0x14030ffa0]
mov edx, 0x26
call fcn.140042e00
mov rsi, rax
cmp qword [r14 + 8], 0
je 0x1400052f0
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140019a50
mov edx, 8
mov rcx, rdi
call fcn.140019a50
jmp 0x140005312
mov rcx, qword [rsp + 0x20]
call fcn.140130e50
mov rcx, rsi
call fcn.140174600
call fcn.140043011
int3