Function at 0x5a4430
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, 0x3c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x523e10
mov dword [ebp - 0x48], 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 0x5a4475
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, 2
jmp 0x5a448f
mov ecx, dword [ebp - 0x20]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x5a4695
mov esi, eax
test eax, eax
je 0x5a4480
cmp esi, 1
jne 0x5a44b0
cmp byte [ebp - 0x48], 0
jne 0x5a4480
jmp 0x5a474a
cmp esi, 3
je 0x5a46cc
mov eax, esi
and eax, 3
cmp eax, 2
je 0x5a44da
jmp 0x5a477f
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x5a4470
mov eax, dword [0x66309c]
test eax, eax
je 0x5a4618
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x5a4510
cmp dword [eax + 4], 0
mov edi, eax
je 0x5a4510
add edi, 8
jmp 0x5a45b0
mov eax, dword [0x66309c]
test eax, eax
je 0x5a462e
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5a4540
mov ebx, eax
cmp eax, 1
jne 0x5a4583
jmp 0x5a4719
movzx eax, byte [0x666470]
mov ecx, 0xc
mov edx, 4
call fcn.00407420
test eax, eax
je 0x5a4734
mov dword [eax], 0x66309c
mov dword [eax + 4], 0
mov ebx, eax
mov eax, dword [0x66309c]
test eax, eax
je 0x5a4644
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 0x5a45b0
test ecx, ecx
je 0x5a45b0
lock dec dword [ecx]
jne 0x5a45b0
call fcn.004fcc20
nop dword [eax + eax]
mov eax, dword [edi]
test eax, eax
jne 0x5a45cf
xor ecx, ecx
mov dword [ebp - 0x10], 0xffffffff
call fcn.004fc5c0
cmp dword [edi], 0
jne 0x5a46dd
mov dword [edi], eax
lock inc dword [eax]
jle 0x5a4717
mov ecx, esi
mov dword [ebp - 0x2c], eax
mov eax, esi
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x2a]
add ecx, 0xfffffffe
mov dword [ebp - 0x28], ecx
lock cmpxchg dword [esi], edx
je 0x5a466c
mov esi, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5a44d0
lock dec dword [eax]
jne 0x5a44d0
mov ecx, dword [ebp - 0x2c]
call fcn.004fcc20
jmp 0x5a44d0
mov ecx, 0x66309c
mov dword [ebp - 0x10], 0xffffffff
call fcn.005a4800
jmp 0x5a44e8
mov ecx, 0x66309c
mov dword [ebp - 0x10], 0xffffffff
call fcn.005a4800
jmp 0x5a451e
mov ecx, 0x66309c
mov dword [ebp - 0x10], 0xffffffff
call fcn.005a4800
jmp 0x5a457b
mov dword [ebp - 0x10], 2
call fcn.004fcc60
movzx eax, byte [ebp - 0x24]
test al, al
je 0x5a4660
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5a4470
lock dec dword [eax]
jne 0x5a4470
mov ecx, dword [ebp - 0x2c]
call fcn.004fcc20
jmp 0x5a4470
lea eax, [ebp - 0x44]
cmp esi, 1
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x10], 0
sete byte [ebp - 0x40]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call dword [eax + 0x10]
add esp, 8
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0xffffffff
call fcn.004fca70
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x44]
mov edx, 0x6280b0
mov dword [ebp - 0x44], 0x628058
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 1
call fcn.0059ede0
ud2
mov dword [ebp - 0x10], 0xffffffff
mov ecx, 0x6285c0
mov edx, 0x5e
push 0x628620
call fcn.0059f240
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0xffffffff
call fcn.0059eab0
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x62a2b8
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.0059ede0
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.0059ef30
nop dword [eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
lock dec dword [eax]
jne 0x5a47b7
mov ecx, dword [ebp - 0x20]
call fcn.004fcc20
add esp, 8
pop ebp
ret