Function at 0x3f011bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3f035c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0x10], 0
je 0x3f011c2e
add eax, 0x10
push eax
call sym.tier0_s.dll_ThreadSetDebugName
add esp, 4
mov dword [ebp - 0x18], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call edi
push 2
push 1
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x3f011c7f
push str.ThreadGetCurrentHandle_failed_to_acquire_a_real_thread_handle
push 0x1b0
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011c7f
int3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [0x3f090308]
cmp eax, 0xffffffff
je 0x3f011cb1
push dword [ebp - 0x14]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call ebx
mov eax, dword [0x3f090308]
jmp 0x3f011ce8
cmp byte [0x3f09030d], 0
jne 0x3f011ce2
mov byte [0x3f09030d], 1
push str.Bad_thread_local:_Set_n
push 0xbcd
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011cdd
int3
mov eax, dword [0x3f090308]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edi, [ebp + 0xfeb]
and edi, 0xfffff000
cmp eax, 0xffffffff
je 0x3f011d02
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x3f011d30
cmp byte [0x3f09030c], 0
jne 0x3f011d2e
mov byte [0x3f09030c], 1
push str.Bad_thread_local:_Get_n
push 0xbb6
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011d2e
int3
xor eax, eax
mov dword [eax + 0x30], edi
mov eax, dword [esi]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x3f011d46
mov byte [eax], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x3f011d69
mov byte [ecx], al
mov edi, dword [esi + 4]
cmp dword [edi], 0
jne 0x3f011d8d
push str.Thread_synchronization_object_is_unuseable
push 0x748
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011d8d
int3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [ebp + 0xb], 0
jne 0x3f011dbf
test esi, esi
je 0x3f011daa
push 0xc
push esi
call fcn.3f01a49b
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
movzx eax, byte [ecx + 0x34]
push eax
push ecx
push sym.tier0_s.dll_private:_static_void___cdecl_CThread::ThreadExceptionWrapper_void__
call sym.tier0_s.dll_CatchAndWriteMiniDumpForVoidPtrFn
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [0x3f090308]
cmp eax, 0xffffffff
je 0x3f011dec
push 0
push eax
call ebx
jmp 0x3f011e18
cmp byte [0x3f09030d], 0
jne 0x3f011e18
mov byte [0x3f09030d], 1
push str.Bad_thread_local:_Set_n
push 0xbcd
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier0_threadtools.cpp
call sym.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__
add esp, 0xc
test al, al
jne 0x3f011e18
int3
mov eax, dword [esi]
mov esi, dword [eax + 0xc]
push 0xc
push dword [ebp - 0x1c]
call fcn.3f01a49b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4