Function at 0x3dccaa0
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, 0x50
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x3dbcf70
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x24], 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 0x3dccae5
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, 2
jmp 0x3dccaff
mov ecx, dword [ebp - 0x24]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x3dccdca
mov esi, eax
test eax, eax
je 0x3dccaf0
cmp esi, 1
jne 0x3dccb20
cmp byte [ebp - 0x50], 0
jne 0x3dccaf0
jmp 0x3dccee3
cmp esi, 3
je 0x3dcce01
mov eax, esi
and eax, 3
cmp eax, 2
je 0x3dccb4a
jmp 0x3dccf18
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x3dccae0
mov eax, dword [0x3de3050]
test eax, eax
je 0x3dccc8c
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x3dccb80
cmp dword [eax + 4], 0
mov edi, eax
je 0x3dccb80
add edi, 8
jmp 0x3dccc20
mov eax, dword [0x3de3050]
test eax, eax
je 0x3dccca2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x3dccbb0
mov ebx, eax
cmp eax, 1
jne 0x3dccbf0
jmp 0x3dcce6a
movzx eax, byte [0x3de3a90]
xor ecx, ecx
mov edx, 0xc
call fcn.03db9190
test eax, eax
je 0x3dcce85
mov dword [eax], 0x3de3050
mov dword [eax + 4], 0
mov ebx, eax
mov eax, dword [0x3de3050]
test eax, eax
je 0x3dcccb8
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 0x3dccc20
test ecx, ecx
je 0x3dccc20
lock dec dword [ecx]
jne 0x3dccc20
call fcn.03da26d0
nop dword [eax + eax]
mov eax, dword [edi]
test eax, eax
jne 0x3dccc3f
xor ecx, ecx
mov dword [ebp - 0x10], 0xffffffff
call fcn.03da2010
cmp dword [edi], 0
jne 0x3dcce2e
mov dword [edi], eax
lock inc dword [eax]
jle 0x3dccee1
mov ecx, esi
mov dword [ebp - 0x48], eax
mov eax, esi
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x46]
add ecx, 0xfffffffe
mov dword [ebp - 0x44], ecx
lock cmpxchg dword [esi], edx
je 0x3dccd9d
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x3dccb40
lock dec dword [eax]
jne 0x3dccb40
mov ecx, dword [ebp - 0x48]
call fcn.03da26d0
jmp 0x3dccb40
mov ecx, 0x3de3050
mov dword [ebp - 0x10], 0xffffffff
call fcn.03dccfb0
jmp 0x3dccb58
mov ecx, 0x3de3050
mov dword [ebp - 0x10], 0xffffffff
call fcn.03dccfb0
jmp 0x3dccb8e
mov ecx, 0x3de3050
mov dword [ebp - 0x10], 0xffffffff
call fcn.03dccfb0
jmp 0x3dccbe8
mov dword [ebp - 0x10], 2
call fcn.03da2710
test eax, eax
je 0x3dcce12
mov dword [ebp - 0x20], eax
mov ebx, 0
lock dec byte [eax + 0x18]
je 0x3dccd90
mov edi, dword [ebp - 0x20]
mov esi, dword [0x3de3a50]
add edi, 0x18
test esi, esi
je 0x3dccd26
nop word cs:[eax + eax]
push 0xffffffffffffffff
push 1
push 0x3dda8f0
push edi
call esi
mov al, 1
lock cmpxchg byte [edi], bl
jne 0x3dccd10
jmp 0x3dccd90
mov ecx, dword [0x3de3028]
cmp ecx, 0xffffffff
jne 0x3dccd71
mov dword [ebp - 0x4c], 0xffffffff
mov eax, dword [0x3de3034]
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x4c]
push ecx
call eax
test eax, eax
jne 0x3dcce9b
mov ecx, dword [ebp - 0x4c]
mov eax, 0xffffffff
lock cmpxchg dword [0x3de3028], ecx
je 0x3dccd71
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
mov eax, dword [0x3de303c]
push 0
push 0
push edi
push ecx
call eax
xor eax, eax
xchg byte [edi], al
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, dword [ebp - 0x20]
lock dec dword [ecx]
jne 0x3dccd9d
call fcn.03da26d0
movzx eax, byte [ebp - 0x40]
test al, al
je 0x3dcccd0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x3dccae0
lock dec dword [eax]
jne 0x3dccae0
mov ecx, dword [ebp - 0x48]
call fcn.03da26d0
jmp 0x3dccae0
lea eax, [ebp - 0x3c]
cmp esi, 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x10], 0
sete byte [ebp - 0x38]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call dword [eax + 0x10]
add esp, 8
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0xffffffff
call fcn.03da2530
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
push 0x3dd8e5c
call fcn.03dcc640
add esp, 4
jmp 0x3dccee1
lea ecx, [ebp - 0x3c]
mov edx, 0x3dd8318
mov dword [ebp - 0x3c], 0x3dd82c0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0x3ddb048
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 1
call fcn.03dcc220
jmp 0x3dccee1
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 0x3dd8e5c
call fcn.03dcc640
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0xffffffff
call fcn.03dcc180
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], 0x3dda91c
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x3c]
mov edx, 0x3dda958
mov dword [ebp - 0x58], fcn.03d96ca0
mov dword [ebp - 0x30], 1
call fcn.03dcc220
ud2
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3ddabcc
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0x3ddb048
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.03dcc220
mov dword [ebp - 0x10], 0xffffffff
mov ecx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs
mov edx, 0x40
push dword [ebp + 0x10]
call fcn.03dcc370
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov eax, dword [ebp - 0x20]
lock dec dword [eax]
jne 0x3dccf57
mov ecx, dword [ebp - 0x20]
call fcn.03da26d0
add esp, 0x10
pop ebp
ret