Function at 0x42c2b0
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, 0x2c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x412580
mov ecx, dword [ebp + 8]
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ecx]
jmp 0x42c2f5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, 2
jmp 0x42c30f
mov ecx, dword [ebp + 8]
mov eax, edi
lock cmpxchg dword [ecx], edx
je 0x42c555
mov edi, eax
test eax, eax
je 0x42c300
cmp edi, 1
jne 0x42c330
cmp byte [ebp + 0xc], 0
jne 0x42c300
jmp 0x42c606
cmp edi, 3
je 0x42c5a0
mov eax, edi
and eax, 3
cmp eax, 2
je 0x42c35a
jmp 0x42c626
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x42c2f0
mov eax, dword [0x439038]
test eax, eax
je 0x42c380
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x42c3a0
jmp 0x42c3b0
mov dword [ebp - 0x10], 0xffffffff
push 0x439038
call fcn.0040dbf0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x42c3b0
cmp dword [eax], 1
mov ebx, eax
jne 0x42c3b0
add ebx, 4
jmp 0x42c470
mov eax, dword [0x439038]
test eax, eax
je 0x42c3d0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c3ef
mov esi, eax
cmp eax, 1
jne 0x42c437
jmp 0x42c5b1
mov dword [ebp - 0x10], 0xffffffff
push 0x439038
call fcn.0040dbf0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42c3c4
push 4
push 0x10
call fcn.00406000
add esp, 8
test eax, eax
je 0x42c5f8
mov dword [eax], 0
mov dword [eax + 0xc], 0x439038
mov esi, eax
mov eax, dword [0x439038]
test eax, eax
jne 0x42c42f
mov dword [ebp - 0x10], 0xffffffff
push 0x439038
call fcn.0040dbf0
add esp, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
lea ebx, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x42c470
test ecx, ecx
je 0x42c470
lock dec dword [ecx]
jne 0x42c470
call fcn.00408e20
nop word cs:[eax + eax]
nop
cmp dword [ebx], 0
jne 0x42c5ce
mov dword [ebx], 0xffffffff
mov esi, dword [ebx + 4]
test esi, esi
jne 0x42c4bf
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x10], 0
sub esp, 4
push 0
call fcn.004097d0
add esp, 8
mov ebx, dword [ebp - 0x2c]
mov esi, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x42c4b9
lock dec dword [eax]
jne 0x42c4b9
mov ecx, dword [ebx + 4]
call fcn.00408e20
mov edi, dword [ebp - 0x38]
mov dword [ebx + 4], esi
lock inc dword [esi]
jle 0x42c5f4
inc dword [ebx]
test esi, esi
je 0x42c5b1
mov ecx, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x26]
and eax, 0xfffffffc
mov dword [ebp - 0x24], eax
mov eax, edi
lock cmpxchg dword [ecx], edx
je 0x42c52c
mov edi, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42c350
lock dec dword [eax]
jne 0x42c350
mov ecx, dword [ebp - 0x28]
call fcn.00408e20
jmp 0x42c350
mov dword [ebp - 0x10], 1
call fcn.00409620
movzx eax, byte [ebp - 0x20]
test al, al
je 0x42c520
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42c2f0
lock dec dword [eax]
jne 0x42c2f0
mov ecx, dword [ebp - 0x28]
call fcn.00408e20
jmp 0x42c2f0
mov eax, dword [ebp + 8]
cmp edi, 1
mov dword [ebp - 0x10], 2
sete byte [ebp - 0x24]
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 1
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call dword [eax + 0x10]
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040c640
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0xffffffff
push 0x42dd08
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyedlibrary_std_src_threadmod.rs
call fcn.0042c8e0
add esp, 0xc
ud2
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x34]
push 0x42e4fc
push 0x42daa8
push eax
push 0x10
push str.already_borrowed_rustc_0b42deaccc2cbe17a68067aa5fdb76104369e1fdlibrarycore_srccharmethods.rs
call fcn.0042c9e0
add esp, 0x14
ud2
ud2
push 4
push 0x10
call fcn.0042c860
add esp, 8
ud2
mov dword [ebp - 0x10], 0xffffffff
mov ecx, str.Once_instance_has_previously_been_poisoned
mov edx, 0x2a
push 0x42e33c
call fcn.0042c7a0
add esp, 4
ud2
mov dword [ebp - 0x10], 0xffffffff
push 0x42e300
push 0x39
push str.assertion_failed:_state_and_queue__STATE_MASK__RUNNING
call fcn.0042c900
add esp, 0xc
ud2