Function at 0x100c2240
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], 0x100d2770
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov esi, edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edi
mov eax, dword [0x1019d134]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], ebx
test eax, eax
je 0x100c229e
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x100c22ca
cmp dword [eax], 1
jne 0x100c22ca
jmp 0x100c240a
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push 0x1019d134
call fcn.100cc460
add esp, 4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x100c2294
mov eax, dword [0x1019d134]
test eax, eax
je 0x100c2324
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x100c234f
cmp eax, 1
jne 0x100c23ac
test esi, esi
mov dword [ebx], 1
je 0x100c2435
mov dword [ebp - 0x10], 0
push esi
call dword [edi]
add esp, 4
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
test eax, eax
je 0x100c2435
push dword [edx + 8]
push eax
push ecx
call fcn.10017710
add esp, 0xc
jmp 0x100c2435
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push 0x1019d134
call fcn.100cc460
add esp, 4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
jne 0x100c22dd
push 4
push 0x14
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100c246c
mov dword [eax], 0
mov dword [eax + 0x10], 0x1019d134
mov ecx, eax
mov eax, dword [0x1019d134]
mov dword [ebp - 0x28], ecx
test eax, eax
jne 0x100c23a2
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push 0x1019d134
call fcn.100cc460
add esp, 4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
push ecx
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
cmp dword [eax], 0
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [eax + 8], 0
je 0x100c240a
test ecx, ecx
je 0x100c240a
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x34], ecx
push ecx
mov dword [ebp - 0x38], edx
call dword [edx]
add esp, 4
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ecx + 4]
test eax, eax
je 0x100c2407
push dword [ecx + 8]
push eax
push dword [ebp - 0x34]
call fcn.10017710
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
cmp dword [eax + 4], 0
jne 0x100c2446
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword [eax + 4], 0
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 3
lea eax, [ebp - 0x30]
push 0x10183e88
push 0x10183f7c
push eax
push 0x10
push str.already_borrowed_rustc_8d69840ab92ea7f4d323420088dd8c9775f180cd_srclibcorecell.rs
call fcn.100df140
add esp, 0x14
ud2
push 4
push 0x14
call fcn.100da490
add esp, 8
ud2