Function at 0x4dc820
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], 0x4d3f10
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x20], ecx
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ecx]
jmp 0x4dc865
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, 2
jmp 0x4dc87f
mov ecx, dword [ebp - 0x20]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x4dcb25
mov esi, eax
test eax, eax
je 0x4dc870
cmp esi, 1
jne 0x4dc8a0
cmp byte [ebp - 0x4c], 0
jne 0x4dc870
jmp 0x4dcbfb
cmp esi, 3
je 0x4dcb5c
mov eax, esi
and eax, 3
cmp eax, 2
je 0x4dc8ca
jmp 0x4dcc30
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x4dc860
mov eax, dword [0x5370a8]
test eax, eax
je 0x4dc8f0
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4dc910
cmp dword [eax + 4], 0
mov edi, eax
je 0x4dc910
add edi, 8
jmp 0x4dc9e0
mov ecx, 0x5370a8
mov dword [ebp - 0x10], 0xffffffff
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x4dc8e0
nop dword [eax]
mov eax, dword [0x5370a8]
test eax, eax
je 0x4dc931
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc950
mov ebx, eax
cmp eax, 1
jne 0x4dc9ab
jmp 0x4dcbe0
mov ecx, 0x5370a8
mov dword [ebp - 0x10], 0xffffffff
call fcn.004dccd0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4dc925
nop dword [eax]
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x4dc973
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4dcb91
mov dword [0x5371d8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4dcb91
mov dword [eax], 0x5370a8
mov dword [eax + 4], 0
mov ebx, eax
mov eax, dword [0x5370a8]
test eax, eax
je 0x4dcacb
dec eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebx + 8]
cmp dword [ebx + 4], 0
lea edi, [ebx + 8]
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
je 0x4dc9e0
test ecx, ecx
je 0x4dc9e0
lock dec dword [ecx]
jne 0x4dc9e0
call fcn.00425670
nop word cs:[eax + eax]
nop dword [eax]
mov edx, dword [edi]
test edx, edx
jne 0x4dca82
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x4dca0d
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4dcb7b
mov dword [0x5371d8], eax
push 0x20
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4dcb7b
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [ebp - 0x24], eax
mov dword [eax + 0x10], 0
movq xmm0, qword [0x5371d0]
movd eax, xmm0
pshufd xmm0, xmm0, 0x55
movd edx, xmm0
nop dword [eax]
mov ebx, eax
mov ecx, edx
add ebx, 1
adc ecx, 0
jb 0x4dcb6d
lock cmpxchg8b qword [0x5371d0]
jne 0x4dca50
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov byte [edx + 0x18], 0
cmp dword [edi], 0
jne 0x4dcba7
mov dword [edi], edx
lock inc dword [edx]
jle 0x4dcbde
mov ecx, dword [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2e]
add eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x4dcafc
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4dc8c0
lock dec dword [eax]
jne 0x4dc8c0
mov ecx, dword [ebp - 0x30]
call fcn.00425670
jmp 0x4dc8c0
mov ecx, 0x5370a8
mov dword [ebp - 0x10], 0xffffffff
call fcn.004dccd0
jmp 0x4dc9a3
mov dword [ebp - 0x10], 3
call fcn.004c48d0
movzx eax, byte [ebp - 0x28]
test al, al
je 0x4dcaf0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4dc860
lock dec dword [eax]
jne 0x4dc860
mov ecx, dword [ebp - 0x30]
call fcn.00425670
jmp 0x4dc860
lea eax, [ebp - 0x48]
cmp esi, 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x10], 0
sete byte [ebp - 0x44]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call dword [eax + 0x10]
add esp, 8
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0xffffffff
call fcn.004c4720
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 1
call fcn.004dcef0
jmp 0x4dcbde
mov ecx, 8
mov edx, 0x20
mov dword [ebp - 0x10], 0xffffffff
call fcn.004d6180
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0xffffffff
call fcn.004d6180
lea ecx, [ebp - 0x48]
mov edx, 0x5323b0
mov dword [ebp - 0x48], 0x532358
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_src_sliceiter.rs
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 2
call fcn.004d6340
ud2
mov dword [ebp - 0x10], 0xffffffff
mov ecx, 0x53298c
mov edx, 0x5e
push 0x5329ec
call fcn.004d67a0
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x5343f4
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_src_sliceiter.rs
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.004d6340
mov dword [ebp - 0x10], 0xffffffff
mov ecx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
push dword [ebp + 0x10]
call fcn.004d6490
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
lock dec dword [ecx]
jne 0x4dcc64
call fcn.004c6b30
add esp, 0xc
pop ebp
ret