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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100a3af0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
mov dword fs:[0], edx
mov edx, 2
mov esi, dword [ecx]
test esi, esi
jne 0x100f8f32
jmp 0x100f935a
mov eax, dword [ebp + 8]
mov edx, 2
mov esi, dword [eax]
test esi, esi
je 0x100f935a
cmp esi, 1
je 0x100f9350
cmp esi, 3
je 0x100f93bc
mov eax, esi
and eax, 3
cmp eax, 2
je 0x100f8f6a
jmp 0x100f94f5
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x100f8f20
mov eax, dword [0x1015f908]
test eax, eax
jne 0x100f8f87
mov dword [ebp - 0x10], 0xffffffff
push 0x1015f908
call fcn.1009c440
add esp, 4
push eax
call edi
cmp eax, 1
mov dword [ebp - 0x20], esi
jbe 0x100f8fb0
cmp dword [eax], 0
mov edx, eax
je 0x100f8fb0
add edx, 4
jmp 0x100f9070
mov eax, dword [0x1015f908]
test eax, eax
je 0x100f8fd0
push eax
call edi
test eax, eax
je 0x100f8feb
mov esi, eax
cmp eax, 1
jne 0x100f9033
jmp 0x100f93d1
mov dword [ebp - 0x10], 0xffffffff
push 0x1015f908
call fcn.1009c440
add esp, 4
push eax
call edi
test eax, eax
jne 0x100f8fc0
push 4
push 0x10
call fcn.1001d510
add esp, 8
test eax, eax
je 0x100f945a
mov dword [eax], 0
mov dword [eax + 0xc], 0x1015f908
mov esi, eax
mov eax, dword [0x1015f908]
test eax, eax
jne 0x100f902b
mov dword [ebp - 0x10], 0xffffffff
push 0x1015f908
call fcn.1009c440
add esp, 4
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
lea edx, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x100f9070
test ecx, ecx
je 0x100f9070
lock dec dword [ecx]
jne 0x100f9070
mov dword [ebp - 0x24], edx
call fcn.10093230
mov edx, dword [ebp - 0x24]
nop word cs:[eax + eax]
cmp dword [edx], 0
jne 0x100f940e
mov dword [edx], 0xffffffff
mov eax, dword [edx + 4]
test eax, eax
jne 0x100f90a9
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 3
sub esp, 4
push 0
call fcn.10093d90
add esp, 8
mov edx, dword [ebp - 0x24]
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [edx + 4], eax
lock inc dword [eax]
jle 0x100f93cd
inc dword [edx]
test eax, eax
je 0x100f93d1
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x28], 0
mov edx, esi
mov ecx, esi
mov eax, esi
mov esi, dword [ebp + 8]
and edx, 3
sub ecx, edx
lea edx, [ebp - 0x2e]
mov dword [ebp - 0x2c], ecx
lock cmpxchg dword [esi], edx
je 0x100f9320
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100f8f60
lock dec dword [eax]
jne 0x100f8f60
mov ecx, dword [ebp - 0x30]
call fcn.10093230
jmp 0x100f8f60
mov eax, dword [0x1015f908]
test eax, eax
je 0x100f9130
push eax
call edi
cmp eax, 1
ja 0x100f9152
jmp 0x100f9170
mov dword [ebp - 0x10], 0
push 0x1015f908
call fcn.1009c440
add esp, 4
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call edi
cmp eax, 1
jbe 0x100f9170
cmp dword [eax], 0
mov esi, eax
je 0x100f9170
add esi, 4
jmp 0x100f9240
mov eax, dword [0x1015f908]
test eax, eax
je 0x100f9190
push eax
call edi
test eax, eax
je 0x100f91b1
mov ebx, eax
cmp eax, 1
jne 0x100f9205
jmp 0x100f93ee
mov dword [ebp - 0x10], 0
push 0x1015f908
call fcn.1009c440
add esp, 4
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call edi
test eax, eax
jne 0x100f9180
push 4
push 0x10
call fcn.1001d510
add esp, 8
test eax, eax
je 0x100f946f
mov dword [eax], 0
mov dword [eax + 0xc], 0x1015f908
mov ebx, eax
mov eax, dword [0x1015f908]
test eax, eax
jne 0x100f91fd
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
push 0x1015f908
call fcn.1009c440
add esp, 4
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, dword [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [ebx + 8]
cmp dword [ebx], 0
lea esi, [ebx + 4]
mov dword [ebx], 1
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
je 0x100f9240
test ecx, ecx
je 0x100f9240
lock dec dword [ecx]
jne 0x100f9240
call fcn.10093230
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esi], 0
jne 0x100f9434
mov dword [esi], 0xffffffff
mov ebx, dword [esi + 4]
test ebx, ebx
jne 0x100f927b
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 1
sub esp, 4
push 0
call fcn.10093d90
add esp, 8
mov esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [esi + 4], eax
lock inc dword [ebx]
jle 0x100f93cd
inc dword [esi]
test ebx, ebx
je 0x100f93ee
mov dword [ebp - 0x34], ebx
lock dec byte [ebx + 0x18]
je 0x100f92c6
mov esi, dword [0x1015fc5c]
add ebx, 0x18
test esi, esi
je 0x100f92d8
nop word cs:[eax + eax]
nop
push 0xffffffffffffffff
push 1
push 0x10135dac
push ebx
call esi
xor edx, edx
mov al, 1
lock cmpxchg byte [ebx], dl
jne 0x100f92b0
mov eax, dword [ebp - 0x34]
lock dec dword [eax]
jne 0x100f9320
mov ecx, dword [ebp - 0x34]
call fcn.10093230
jmp 0x100f9320
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 2
call fcn.100a1720
mov ecx, dword [0x1015fc7c]
test ecx, ecx
je 0x100f9484
push 0
push 0
mov esi, dword [ebp - 0x20]
push esi
push eax
call ecx
xor eax, eax
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
xchg byte [esi], al
mov eax, dword [ebp - 0x34]
lock dec dword [eax]
je 0x100f92ce
nop word cs:[eax + eax]
nop dword [eax]
mov al, byte [ebp - 0x28]
test al, al
je 0x100f9110
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100f8f20
lock dec dword [eax]
jne 0x100f8f20
mov ecx, dword [ebp - 0x30]
call fcn.10093230
jmp 0x100f8f20
cmp byte [ebp + 0xc], 0
je 0x100f94ba
mov ecx, dword [ebp + 8]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x100f9371
mov esi, eax
test esi, esi
jne 0x100f8f32
jmp 0x100f935a
mov eax, dword [ebp + 8]
cmp esi, 1
mov dword [ebp - 0x10], 4
sete byte [ebp - 0x48]
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], 1
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call dword [eax + 0x10]
add esp, 8
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
call fcn.1009ae20
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
mov dword [ebp - 0x10], 0xffffffff
push 0x10134520
push 0x5e
push 0x101344c1
call fcn.100f9850
add esp, 0xc
ud2
mov dword [ebp - 0x10], 0
push 0x10134520
push 0x5e
push 0x101344c1
call fcn.100f9850
add esp, 0xc
jmp 0x100f94b8
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push 0x10135114
push 0x101342ac
push eax
push 0x10
push str.already_borrowed_rustc_dc80ca78b6ec2b6bba02560470347433bcd0bb3clibrarycore_srccharmethods.rsxA
call fcn.100f9a60
add esp, 0x14
ud2
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x4c]
push 0x10135114
push 0x101342ac
push eax
push 0x10
push str.already_borrowed_rustc_dc80ca78b6ec2b6bba02560470347433bcd0bb3clibrarycore_srccharmethods.rsxA
call fcn.100f9a60
add esp, 0x14
jmp 0x100f94b8
mov dword [ebp - 0x10], 0xffffffff
push 4
push 0x10
call fcn.100f97e0
add esp, 8
ud2
mov dword [ebp - 0x10], 0
push 4
push 0x10
call fcn.100f97e0
add esp, 8
jmp 0x100f94b8
mov dword [ebp - 0x4c], str.keyed_events_not_available
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x10133fe8
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x4c]
push 0x1013601c
push eax
call fcn.100f99c0
add esp, 8
ud2
mov dword [ebp - 0x4c], 0x10134f20
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x10133fe8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push dword [ebp + 0x18]
push eax
call fcn.100f99c0
add esp, 8
ud2
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 0x18]
push 0x40
push str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
call fcn.100f9870
add esp, 0xc
ud2