Function at 0x1000bc00
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100251c0
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x1000bc3e
test eax, eax
jne 0x1000bdba
mov ebx, dword [0x100409c4]
test ebx, ebx
je 0x1000bdba
mov dword [ebp - 0x20], 0
jmp 0x1000bc67
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000bc98
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000be0b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000bc60
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 0x1000bc60
test byte [ebp - 0x20], 1
je 0x1000bdba
mov ebx, dword [0x100409c4]
test ebx, ebx
je 0x1000bdba
mov dword [ebp - 0x20], 0
jmp 0x1000bcc7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000bcf8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000be0b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000bcc0
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 0x1000bcc0
test byte [ebp - 0x20], 1
je 0x1000bdba
mov ebx, dword [0x100409c4]
test ebx, ebx
je 0x1000bdba
mov dword [ebp - 0x20], 0
jmp 0x1000bd27
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000bd58
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000be0b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000bd20
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 0x1000bd20
test byte [ebp - 0x20], 1
je 0x1000bdba
mov ebx, dword [0x100409c4]
test ebx, ebx
je 0x1000bdba
mov dword [ebp - 0x20], 0
jmp 0x1000bd87
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000bdb4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000be0b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000bd80
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 0x1000bd80
test byte [ebp - 0x20], 1
jne 0x1000bdd4
movzx eax, byte [0x1003d400]
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 [0x100409c4]
jmp 0x1000bddf
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x1000bdba
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000be0b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000bddc
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x1000bddc
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_69f9c33d71c871fc16ac445211281c6e7a340943library_alloc_srccollections_btree_navigate.rs
mov edx, 0x2b
push 0x10037e5c
call fcn.10032a80
add esp, 4
ud2