Function at 0x45cb10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov ebx, dword [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x38], eax
test ebx, ebx
je 0x45cce1
cmp dword [0x5a74d8], 0xe69e32f3
jne 0x45cceb
mov edi, 0x750
mov edx, 0x20
mov ecx, 0x20
add edi, dword [ebx + 8]
mov byte [esp + 0x1f], 0xff
movzx eax, byte [ebx + 2]
je 0x45cb65
bsr ecx, edi
xor ecx, 0x1f
sub edx, ecx
mov esi, 0x568f8e
sub esi, ecx
movzx ecx, byte [esi]
mov esi, edi
shr esi, cl
and esi, 7
mov ecx, dword [edx*4 + 0x568f90]
and ecx, edi
lea edx, [esi + edx*8]
cmp ecx, 1
sbb edx, 0xffffffff
movzx ecx, word [edx + edx + 0x56a1f8]
test al, al
mov dword [esp + 0x14], edi
jne 0x45cbb0
cmp edi, 0x41
setae al
cmp cx, 0x76
setb dl
and dl, al
movzx eax, dl
or eax, ecx
mov ecx, eax
lea edi, [ebx + 0x48]
movzx esi, cx
shl esi, 5
cmp dword [0x5a9910], 0
je 0x45cbca
mov ecx, dword [0x5a990c]
jmp 0x45cbf2
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.TryAcquireSRWLockExclusive
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x5a990c], eax
mov dword [0x5a9910], 1
mov dword [esp + 0x18], esi
lea eax, [edi + esi]
mov dword [esp + 0xc], eax
lea esi, [ebx + 0x40]
test ecx, ecx
je 0x45cc6a
call dword [section..00cfg]
push esi
call ecx
test al, al
jne 0x45cc18
mov ecx, esi
call fcn.0045d630
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov esi, dword [eax]
test esi, esi
je 0x45ccf5
mov byte [esp + 0x1f], 0
mov ebx, dword [esi]
test ebx, ebx
je 0x45cc74
mov ecx, dword [esp + 0x18]
mov ecx, dword [edi + ecx + 0xc]
mov dword [esp + 0xc], ecx
mov edx, ebx
bswap edx
mov ecx, edx
xor ecx, esi
cmp ecx, 0x1fffff
ja 0x45cd41
mov ecx, edx
and ecx, 0x1fc000
je 0x45cd41
prefetcht0 byte [edx]
jmp 0x45cc76
xor eax, eax
lock bts dword [esi], eax
jb 0x45cc11
jmp 0x45cc18
xor edx, edx
mov dword [eax], edx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebx + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x1180]
mov dword [ebx + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [ebx + 0x1180], ecx
cmp dword [0x5a97a8], 0
je 0x45cd7f
mov ecx, dword [0x5a97a4]
test ecx, ecx
je 0x45cdaf
call dword [section..00cfg]
push dword [esp + 0x10]
call ecx
jmp 0x45cdb7
push str....._base_allocatorpartition_allocator_thread_cache.cc_449__Check_failed:_root
call fcn.00460b40
push str....._base_allocatorpartition_allocator_thread_cache.cc_452__Check_failed:_tools::kThreadCacheNeedleArray_0___tools::kNeedle1
call fcn.00460b40
lea eax, [esp + 0x1f]
push eax
push 0x4000
push dword [esp + 0x1c]
push 2
push ebx
call fcn.0048c1a0
test eax, eax
je 0x45cd70
mov esi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x45cc92
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
lea esi, [esp + 0x20]
mov ecx, esi
push 0
push ebx
push str.first
call fcn.0044ea50
push esi
call fcn.00403610
add esp, 4
mov ecx, dword [esp + 0xc]
call fcn.0045d320
xor esi, esi
cmp dword [0x5a97a8], 0
jne 0x45ccc2
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x560f2f
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x5a97a4], eax
mov dword [0x5a97a8], 1
test ecx, ecx
jne 0x45ccd0
xor eax, eax
mov ecx, dword [esp + 0x10]
xchg dword [ecx], eax
mov dword [esi], 0
mov byte [esi + 4], 0
lea eax, [esi + 0x4c0]
push 0x280
push 0
push eax
call fcn.00536680
add esp, 0xc
mov dword [esi + 0x740], ebx
call fcn.00434210
mov dword [esi + 0x744], eax
mov dword [esi + 0x748], 0
mov dword [esi + 0x74c], 0
mov ecx, 0x5a74b8
push esi
call fcn.0045c510
lea eax, [esi + 8]
push 0x498
push 0
push eax
call fcn.00536680
add esp, 0xc
mov eax, 0x98
jmp 0x45ce3b
inc eax
add edi, 0x20
cmp eax, 0xe8
je 0x45ce67
mov dword [esi + eax*8], 0
mov byte [esi + eax*8 + 4], 0
movzx ecx, byte [eax + 0x5aa920]
mov byte [esi + eax*8 + 5], cl
movzx ecx, word [edi + 0xc]
mov word [esi + eax*8 + 6], cx
cmp dword [edi], 0
jne 0x45ce30
mov byte [esi + eax*8 + 5], 0
jmp 0x45ce30
push esi
push dword [0x5aa9a8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, 0x5aa9ac
call fcn.00404ea0
mov dword [eax], esi
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret