Function at 0x10032c80
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, 0x58
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10025200
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x24], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ecx]
jmp 0x10032cde
cmp byte [ebp - 0x54], 0
je 0x10033233
mov ecx, dword [ebp - 0x24]
mov eax, edi
mov edx, 2
lock cmpxchg dword [ecx], edx
je 0x100330da
mov edi, eax
test eax, eax
je 0x10032cca
cmp edi, 1
je 0x10032cc0
cmp edi, 3
je 0x10033111
mov eax, edi
and eax, 3
cmp eax, 2
je 0x10032d1e
jmp 0x1003326a
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x100330d0
mov eax, dword [0x10040060]
test eax, eax
je 0x10032e7a
dec eax
push eax
call ebx
cmp eax, 1
jbe 0x10032d50
cmp dword [eax], 0
mov edx, eax
je 0x10032d50
add edx, 4
jmp 0x10032df0
mov eax, dword [0x10040060]
test eax, eax
je 0x10032e90
dec eax
push eax
call ebx
test eax, eax
je 0x10032d80
mov esi, eax
cmp eax, 1
jne 0x10032db7
jmp 0x10033193
mov ecx, 0x10
call fcn.10001000
test eax, eax
je 0x1003317b
mov dword [eax], 0
mov dword [eax + 0xc], 0x10040060
mov esi, eax
mov eax, dword [0x10040060]
test eax, eax
je 0x10032ea6
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
movsd xmm0, qword [0x10034300]
lea edx, [esi + 4]
movsd qword [esi], xmm0
mov dword [esi + 8], 0
je 0x10032df0
test ecx, ecx
je 0x10032df0
lock dec dword [ecx]
jne 0x10032df0
mov esi, edx
call fcn.1000c190
mov edx, esi
nop word [eax + eax]
cmp dword [edx], 0
jne 0x10033126
mov dword [edx], 0xffffffff
mov eax, dword [edx + 4]
test eax, eax
jne 0x10032e27
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x10], 0
call fcn.1000be50
mov edx, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp - 0x58]
mov dword [edx + 4], eax
lock inc dword [eax]
jle 0x10033122
inc dword [edx]
mov edx, edi
mov esi, dword [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x2c], 0
mov eax, edi
and edx, 3
sub ecx, edx
lea edx, [ebp - 0x32]
mov dword [ebp - 0x30], ecx
lock cmpxchg dword [esi], edx
je 0x100330b0
mov edi, eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10032d10
lock dec dword [eax]
jne 0x10032d10
mov ecx, dword [ebp - 0x34]
call fcn.1000c190
jmp 0x10032d10
mov ecx, 0x10040060
mov dword [ebp - 0x10], 0xffffffff
call fcn.10033320
jmp 0x10032d2c
mov ecx, 0x10040060
mov dword [ebp - 0x10], 0xffffffff
call fcn.10033320
jmp 0x10032d5e
mov ecx, 0x10040060
mov dword [ebp - 0x10], 0xffffffff
call fcn.10033320
jmp 0x10032daf
mov eax, dword [0x10040060]
test eax, eax
je 0x10032ed0
dec eax
jmp 0x10032ee7
mov ecx, 0x10040060
mov dword [ebp - 0x10], 1
call fcn.10033320
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebx
cmp eax, 1
jbe 0x10032f00
cmp dword [eax], 0
mov edi, eax
je 0x10032f00
add edi, 4
jmp 0x10032fc0
mov eax, dword [0x10040060]
test eax, eax
je 0x10032f10
dec eax
jmp 0x10032f27
mov ecx, 0x10040060
mov dword [ebp - 0x10], 1
call fcn.10033320
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebx
test eax, eax
je 0x10032f40
mov esi, eax
cmp eax, 1
jne 0x10032f92
jmp 0x100331b3
mov ecx, 0x10
call fcn.10001000
test eax, eax
je 0x100331d3
mov dword [eax], 0
mov dword [eax + 0xc], 0x10040060
mov esi, eax
mov eax, dword [0x10040060]
test eax, eax
je 0x10032f6d
dec eax
jmp 0x10032f8a
mov ecx, 0x10040060
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 1
call fcn.10033320
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp - 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
movsd xmm0, qword [0x10034300]
lea edi, [esi + 4]
movsd qword [esi], xmm0
mov dword [esi + 8], 0
je 0x10032fc0
test ecx, ecx
je 0x10032fc0
lock dec dword [ecx]
jne 0x10032fc0
call fcn.1000c190
nop
cmp dword [edi], 0
jne 0x1003314f
mov dword [edi], 0xffffffff
mov esi, dword [edi + 4]
test esi, esi
jne 0x10032ff3
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 3
call fcn.1000be50
mov edi, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [edi + 4], eax
lock inc dword [esi]
jle 0x10033122
inc dword [edi]
mov dword [ebp - 0x28], esi
lock dec byte [esi + 0x18]
je 0x100330a0
mov edi, dword [0x100409c8]
add esi, 0x18
test edi, edi
je 0x10033038
nop dword [eax + eax]
push 0xffffffffffffffff
push 1
push 0x10037e6c
push esi
call edi
xor ecx, ecx
mov al, 1
lock cmpxchg byte [esi], cl
jne 0x10033020
jmp 0x100330a0
mov ecx, dword [0x10040034]
cmp ecx, 0xffffffff
jne 0x10033083
mov dword [ebp - 0x38], 0xffffffff
mov eax, dword [0x10040044]
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x38]
push ecx
call eax
test eax, eax
jne 0x100331eb
mov ecx, dword [ebp - 0x38]
mov eax, 0xffffffff
lock cmpxchg dword [0x10040034], ecx
je 0x10033083
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
mov eax, dword [0x1004004c]
push 0
push 0
push esi
push ecx
call eax
xor eax, eax
xchg byte [esi], al
nop word cs:[eax + eax]
nop
mov eax, dword [ebp - 0x28]
lock dec dword [eax]
jne 0x100330b0
mov ecx, dword [ebp - 0x28]
call fcn.1000c190
movzx eax, byte [ebp - 0x2c]
test al, al
je 0x10032ec0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100330d0
lock dec dword [eax]
jne 0x100330d0
mov ecx, dword [ebp - 0x34]
call fcn.1000c190
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
jmp 0x10032cde
lea eax, [ebp - 0x50]
cmp edi, 1
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x10], 4
sete byte [ebp - 0x4c]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call dword [eax + 0x10]
add esp, 8
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0xffffffff
call fcn.1000c210
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x50]
mov ecx, str.already_borrowedlibrary_std_srcio_stdio.rs
mov edx, 0x10
push 0x100371b4
push 0x10035e88
push eax
call fcn.10032ba0
add esp, 0xc
ud2
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x50]
mov ecx, str.already_borrowedlibrary_std_srcio_stdio.rs
mov edx, 0x10
push 0x100371b4
push 0x10035e88
push eax
call fcn.10032ba0
add esp, 0xc
jmp 0x10033231
mov ecx, 0x10
mov edx, 4
mov dword [ebp - 0x10], 0xffffffff
call fcn.10032910
ud2
mov dword [ebp - 0x10], 0xffffffff
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
push 0x100367e8
call fcn.10032ae0
add esp, 4
ud2
mov dword [ebp - 0x10], 1
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
push 0x100367e8
call fcn.10032ae0
add esp, 4
jmp 0x10033231
mov ecx, 0x10
mov edx, 4
mov dword [ebp - 0x10], 1
call fcn.10032910
jmp 0x10033231
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0x10037e98
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x50]
mov edx, 0x10037ecc
mov dword [ebp - 0x60], fcn.100053e0
mov dword [ebp - 0x3c], 1
call fcn.100329c0
ud2
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x10038350
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], str.called__Result::unwrap____on_an__Err__value
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.100329c0
ud2
mov dword [ebp - 0x10], 0xffffffff
mov ecx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
mov edx, 0x40
push dword [ebp + 0x10]
call fcn.10032a80
add esp, 4
ud2