Function at 0x455d80
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], 0x4466d0
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x24], ecx
mov edx, 2
xor ebx, ebx
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov esi, eax
test eax, eax
jne 0x455def
jmp 0x455dda
cmp byte [ebp - 0x50], 0
je 0x45653b
mov ecx, dword [ebp - 0x24]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x456349
mov esi, eax
test eax, eax
je 0x455dda
cmp esi, 1
je 0x455dd0
cmp esi, 3
je 0x456380
mov eax, esi
and eax, 3
cmp eax, 2
je 0x455e1e
jmp 0x45654d
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x456330
mov eax, dword [0xdd104c]
test eax, eax
je 0x455e4e
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x455e70
cmp dword [eax + 4], 0
mov edi, eax
je 0x455e70
add edi, 8
mov edx, dword [edi]
test edx, edx
jne 0x456000
jmp 0x455f4a
mov ecx, 0xdd104c
mov dword [ebp - 0x10], 0xffffffff
call fcn.00456600
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x455e34
nop dword [eax + eax]
mov eax, dword [0xdd104c]
test eax, eax
je 0x455e91
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x455eb0
mov ebx, eax
cmp eax, 1
jne 0x455f0b
jmp 0x4564b3
mov ecx, 0xdd104c
mov dword [ebp - 0x10], 0xffffffff
call fcn.00456600
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x455e85
nop dword [eax]
movzx eax, byte [0xdd19c0]
mov eax, dword [0xdd1a40]
test eax, eax
jne 0x455ed3
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x4563ed
mov dword [0xdd1a40], eax
push 0xc
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x4563ed
mov dword [eax], 0xdd104c
mov dword [eax + 4], 0
mov ebx, eax
mov eax, dword [0xdd104c]
test eax, eax
je 0x456049
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 0x455fe6
test ecx, ecx
mov ebx, 0
je 0x455f40
lock dec dword [ecx]
jne 0x455f40
call fcn.00408e60
nop dword [eax]
mov edx, dword [edi]
test edx, edx
jne 0x456000
movzx eax, byte [0xdd19c0]
mov eax, dword [0xdd1a40]
test eax, eax
jne 0x455f6d
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x4563ba
mov dword [0xdd1a40], eax
push 0x20
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x4563ba
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [ebp - 0x20], eax
mov dword [eax + 0x10], 0
movq xmm0, qword [0xdd1a38]
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 0x456391
lock cmpxchg8b qword [0xdd1a38]
jne 0x455fb0
mov edx, dword [ebp - 0x20]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov byte [edx + 0x18], 0
cmp dword [edi], 0
jne 0x456420
xor ebx, ebx
mov dword [edi], edx
jmp 0x456000
xor ebx, ebx
mov edx, dword [edi]
test edx, edx
je 0x455f4a
nop word cs:[eax + eax]
nop dword [eax]
lock inc dword [edx]
jle 0x4563b6
mov ecx, dword [ebp - 0x24]
mov eax, esi
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x46]
add eax, 0xfffffffe
mov dword [ebp - 0x44], eax
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x456065
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x455e10
lock dec dword [eax]
jne 0x455e10
mov ecx, dword [ebp - 0x48]
call fcn.00408e60
jmp 0x455e10
mov ecx, 0xdd104c
mov dword [ebp - 0x10], 0xffffffff
call fcn.00456600
jmp 0x455f03
call fcn.00408e60
movzx eax, byte [ebp - 0x40]
test al, al
jne 0x456312
mov eax, dword [0xdd104c]
test eax, eax
je 0x456090
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4560af
jmp 0x4560c0
mov ecx, 0xdd104c
mov dword [ebp - 0x10], 2
call fcn.00456600
xor ebx, ebx
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4560c0
cmp dword [eax + 4], 0
mov esi, eax
je 0x4560c0
add esi, 8
jmp 0x4561b0
mov eax, dword [0xdd104c]
test eax, eax
je 0x4560f0
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x45610e
mov edi, eax
cmp eax, 1
jne 0x456180
jmp 0x4564d3
mov ecx, 0xdd104c
mov dword [ebp - 0x10], 2
call fcn.00456600
xor ebx, ebx
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x4560d5
movzx eax, byte [0xdd19c0]
mov eax, dword [0xdd1a40]
test eax, eax
jne 0x456131
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x456405
mov dword [0xdd1a40], eax
push 0xc
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x456405
mov dword [eax], 0xdd104c
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0xdd104c]
test eax, eax
je 0x45615f
dec eax
jmp 0x456178
mov ecx, 0xdd104c
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 2
call fcn.00456600
mov edi, dword [ebp - 0x20]
xor ebx, ebx
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [edi + 8]
cmp dword [edi + 4], 0
lea esi, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], 0
je 0x4561b0
test ecx, ecx
je 0x4561b0
lock dec dword [ecx]
jne 0x4561b0
call fcn.00408e60
nop dword [eax + eax]
mov edi, dword [esi]
test edi, edi
jne 0x456251
movzx eax, byte [0xdd19c0]
mov eax, dword [0xdd1a40]
test eax, eax
jne 0x4561dd
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x4563d2
mov dword [0xdd1a40], eax
push 0x20
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x4563d2
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 0x10], 0
mov edi, eax
movq xmm0, qword [0xdd1a38]
movd eax, xmm0
pshufd xmm0, xmm0, 0x55
movd edx, xmm0
nop dword [eax + eax]
mov ebx, eax
mov ecx, edx
add ebx, 1
adc ecx, 0
jb 0x4563a2
lock cmpxchg8b qword [0xdd1a38]
jne 0x456220
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov byte [edi + 0x18], 0
cmp dword [esi], 0
jne 0x456464
xor ebx, ebx
mov dword [esi], edi
lock inc dword [edi]
jle 0x4563b6
mov dword [ebp - 0x20], edi
lock dec byte [edi + 0x18]
je 0x456294
mov eax, dword [ebp - 0x20]
mov esi, dword [0xdd1a60]
lea edi, [eax + 0x18]
test esi, esi
je 0x4562a5
nop word cs:[eax + eax]
nop dword [eax]
push 0xffffffffffffffff
push 1
push 0xdc7ba0
push edi
call esi
mov al, 1
lock cmpxchg byte [edi], bl
jne 0x456280
mov ecx, dword [ebp - 0x20]
lock dec dword [ecx]
jne 0x456065
jmp 0x456060
mov ecx, dword [0xdd1028]
cmp ecx, 0xffffffff
jne 0x4562f0
mov dword [ebp - 0x4c], 0xffffffff
mov eax, dword [0xdd1030]
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x4c]
push ecx
call eax
test eax, eax
jne 0x4564f3
mov ecx, dword [ebp - 0x4c]
mov eax, 0xffffffff
lock cmpxchg dword [0xdd1028], ecx
je 0x4562f0
mov esi, eax
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, esi
mov eax, dword [0xdd1038]
push 0
push 0
push edi
push ecx
call eax
xor eax, eax
xchg byte [edi], al
mov ecx, dword [ebp - 0x20]
lock dec dword [ecx]
je 0x456060
jmp 0x456065
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x456330
lock dec dword [eax]
jne 0x456330
mov ecx, dword [ebp - 0x48]
call fcn.00408e60
nop word cs:[eax + eax]
mov eax, dword [ebp - 0x24]
mov edx, 2
mov eax, dword [eax]
mov esi, eax
test eax, eax
jne 0x455def
jmp 0x455dda
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.00428100
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 1
call fcn.00456850
jmp 0x456539
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 3
call fcn.00456850
jmp 0x456539
ud2
mov ecx, 8
mov edx, 0x20
mov dword [ebp - 0x10], 0xffffffff
call fcn.00455560
ud2
mov ecx, 8
mov edx, 0x20
mov dword [ebp - 0x10], 2
call fcn.00455560
jmp 0x456539
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0xffffffff
call fcn.00455560
ud2
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 2
call fcn.00455560
jmp 0x456539
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edx
call fcn.004282c0
lea ecx, [ebp - 0x3c]
mov edx, 0xdc563c
mov dword [ebp - 0x3c], 0xdc5634
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], str._rustc_e20cb7702117f1ad8127a16406ba9edd230c4f65librarycore_src_sliceiter.rs
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.00455610
ud2
lock dec dword [edi]
jne 0x456477
mov ecx, edi
call fcn.00408e60
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x3c]
mov edx, 0xdc563c
mov dword [ebp - 0x3c], 0xdc5634
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], str._rustc_e20cb7702117f1ad8127a16406ba9edd230c4f65librarycore_src_sliceiter.rs
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 2
call fcn.00455610
jmp 0x456539
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 0xdc6134
call fcn.00455ac0
add esp, 4
ud2
mov dword [ebp - 0x10], 2
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
push 0xdc6134
call fcn.00455ac0
add esp, 4
jmp 0x456539
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], 0xdc7bcc
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x3c]
mov edx, 0xdc7c04
mov dword [ebp - 0x58], 0x419a90
mov dword [ebp - 0x30], 1
call fcn.00455610
ud2
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0xdc7ee4
jmp 0x45643a
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.00455790
add esp, 4
ud2