Function at 0x140002090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x1400020e3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x1400020e3
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400020f2
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [0x140024670]
lea r12, str.DlFsFlt
mov qword [rsp + 0x28], r12
lea rax, [0x14001bb20]
mov qword [rsp + 0x20], rax
mov r9d, 0x6d
lea r13, [0x14001b9d0]
mov r8, r13
lea rdx, [0x14001bb28]
mov rcx, rdi
call fcn.1400074b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x140002154
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x140002154
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140002163
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [0x140024670]
xor ebp, ebp
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0x80], 0xff
mov ecx, dword [0x14002346c]
cmp ecx, 0xffffffff
je 0x1400021d8
cmp dword [0x140023470], 0xffffffff
je 0x1400021d8
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x68], rax
mov ecx, dword [0x140023470]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x70], rax
lea rdx, str.FilterDetachFromAllVolumes
mov ecx, dword [0x14002346c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x68]
mov ecx, dword [0x140023470]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1400021e6
mov rcx, rdi
call fcn.140005d90
nop
mov sil, 1
mov dword [rsp + 0xc0], esi
lea rcx, [rsp + 0x48]
call fcn.140001f00
nop
mov rdi, qword [rsp + 0x48]
cmp rdi, qword [rsp + 0x50]
je 0x1400023a2
add rdi, 0x50
nop
lea rsi, [rdi - 0x50]
cmp qword [rdi - 0x38], 8
jb 0x140002220
mov rcx, qword [rsi]
jmp 0x140002223
mov rcx, rsi
mov rdx, r12
call fcn.14000c5d8
test eax, eax
jne 0x140002388
cmp qword [rdi + 0x18], 8
jb 0x14000223f
mov r15, qword [rdi]
jmp 0x140002242
mov r15, rdi
lea rbp, [rdi - 0x28]
cmp qword [rdi - 0x10], 8
jb 0x140002253
mov r14, qword [rbp]
jmp 0x140002256
mov r14, rbp
cmp qword [rdi - 0x38], 8
jb 0x140002262
mov r13, qword [rsi]
jmp 0x140002265
mov r13, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x140002290
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140002290
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000229f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r12, [0x140024670]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x73
lea r13, [0x14001b9d0]
mov r9, r13
lea r8, str.Detaching__ls_from__ls__instance__ls_...
lea rdx, [0x14001bb28]
mov rcx, r12
call fcn.140007e70
cmp qword [rdi + 0x18], 8
jb 0x1400022e2
mov r8, qword [rdi]
jmp 0x1400022e5
mov r8, rdi
cmp qword [rdi - 0x10], 8
jb 0x1400022f0
mov rbp, qword [rbp]
cmp qword [rdi - 0x38], 8
jb 0x1400022fa
mov rsi, qword [rsi]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.FLTLIB.DLL_FilterDetach]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x140002333
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x140002333
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140002342
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rsi, [0x140024670]
mov dword [rsp + 0x20], 0x75
mov r9d, ebp
lea r8, str.FilterDetach_returned
lea rdx, [0x14001bb28]
mov rcx, rsi
call fcn.140007ba0
mov esi, dword [rsp + 0xc0]
movzx esi, sil
test ebp, ebp
mov ebp, 0
cmovs esi, ebp
mov dword [rsp + 0xc0], esi
lea r12, str.DlFsFlt
jmp 0x14000238f
mov esi, dword [rsp + 0xc0]
add rdi, 0x78
lea rax, [rdi - 0x50]
cmp rax, qword [rsp + 0x50]
jne 0x140002210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140023468]
cmp ecx, 0xffffffff
je 0x1400023cd
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x1400023cd
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400023dc
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [0x140024670]
movzx r8d, sil
mov dword [rsp + 0x28], 0x79
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, [0x14001bb28]
mov rcx, rdi
call fcn.140007770
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000241e
mov rdx, qword [rsp + 0x50]
call fcn.140003410
mov rcx, qword [rsp + 0x48]
call fcn.14000cb44
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x68]
call fcn.1400044b0
movzx eax, sil
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret