Function at 0x46ed30
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, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x471e70
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x59d050]
test al, al
je 0x46ef01
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46ed7c
cmp eax, 3
jne 0x46eefa
mov ebx, dword [0x59d054]
test ebx, ebx
je 0x46eefa
mov dword [ebp - 0x20], 0
jmp 0x46eda7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x46edd8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x46ef4b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x46eda0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x46eda0
test byte [ebp - 0x20], 1
je 0x46eefa
mov ebx, dword [0x59d054]
test ebx, ebx
je 0x46eefa
mov dword [ebp - 0x20], 0
jmp 0x46ee07
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x46ee38
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x46ef4b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x46ee00
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x46ee00
test byte [ebp - 0x20], 1
je 0x46eefa
mov ebx, dword [0x59d054]
test ebx, ebx
je 0x46eefa
mov dword [ebp - 0x20], 0
jmp 0x46ee67
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x46ee98
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x46ef4b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x46ee60
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x46ee60
test byte [ebp - 0x20], 1
je 0x46eefa
mov ebx, dword [0x59d054]
test ebx, ebx
je 0x46eefa
mov dword [ebp - 0x20], 0
jmp 0x46eec7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x46eef4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x46ef4b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x46eec0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x46eec0
test byte [ebp - 0x20], 1
jne 0x46ef14
movzx eax, byte [0x585380]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x59d054]
jmp 0x46ef1f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x46eefa
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x46ef4b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x46ef1c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x46ef1c
mov dword [ebp - 0x10], 0
push 0x57ddd8
push 0x2b
push str.called__Option::unwrap____on_a__None__value_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_srccollections_btree_navigate.rs
call fcn.0051ee20
add esp, 0xc
ud2