Function at 0x101a31b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x101a341c
mov byte [ebp - 0x11], 0xff
lea esi, [ebx + 0x6d0]
lea edi, [ebx + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov eax, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
push edi
call eax
test al, al
jne 0x101a3235
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
test ecx, ecx
jle 0x101a320c
pause
add eax, 0xffffffff
jne 0x101a31fe
mov eax, dword [ebp - 0x18]
add eax, ecx
jmp 0x101a320f
mov eax, dword [ebp - 0x18]
add ecx, ecx
cmp ecx, 0x40
mov edx, 0x40
cmovge ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp eax, 0x3e8
mov eax, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
jl 0x101a31ee
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov ecx, esi
mov eax, dword [esi]
mov esi, dword [eax]
test esi, esi
je 0x101a33fa
mov byte [ebp - 0x11], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x101a3261
mov edx, ecx
not edx
cmp dword [esi + 4], edx
jne 0x101a3417
bswap ecx
prefetcht0 byte [ecx]
jmp 0x101a3263
bswap ecx
mov dword [eax], ecx
add word [eax + 0xc], 1
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
lea edi, [esi + 0x310]
xorps xmm0, xmm0
movups xmmword [esi + 0x350], xmm0
movups xmmword [esi + 0x340], xmm0
movups xmmword [esi + 0x330], xmm0
movups xmmword [esi + 0x320], xmm0
movups xmmword [esi + 0x310], xmm0
mov dword [esi + 0x364], 0
mov dword [esi + 0x360], 0
push 0x30d
push 0
push esi
call fcn.10208980
add esp, 0xc
mov dword [esi + 0x368], ebx
mov dword [esi + 0x36c], 0
mov dword [esi + 0x370], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov eax, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
push 0x102b3240
call eax
test al, al
jne 0x101a333d
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
test ecx, ecx
jle 0x101a3310
pause
add eax, 0xffffffff
jne 0x101a3302
mov eax, dword [ebp - 0x18]
add eax, ecx
jmp 0x101a3313
mov eax, dword [ebp - 0x18]
add ecx, ecx
cmp ecx, 0x40
mov edx, 0x40
cmovge ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp eax, 0x3e8
mov eax, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
jl 0x101a32ee
push 0x102b3240
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [esi + 0x370], 0
mov eax, dword [0x102b3244]
mov dword [0x102b3244], esi
mov dword [esi + 0x36c], eax
test eax, eax
je 0x101a3362
mov dword [eax + 0x370], esi
push 0x102b3240
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
xorps xmm0, xmm0
movups xmmword [edi + 0x40], xmm0
movups xmmword [edi + 0x30], xmm0
movups xmmword [edi + 0x20], xmm0
movups xmmword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
add ebx, 0x10
xor eax, eax
jmp 0x101a33b7
mov byte [esi + eax*8 + 5], 0
xor ecx, ecx
mov word [esi + eax*8 + 6], cx
add eax, 1
add ebx, 0x20
cmp eax, 0x61
je 0x101a33d9
mov dword [esi + eax*8], 0
mov byte [esi + eax*8 + 4], 0
movzx ecx, byte [eax + 0x102b9110]
mov byte [esi + eax*8 + 5], cl
cmp dword [ebx], 0
je 0x101a33a0
movzx ecx, word [ebx + 0xc]
jmp 0x101a33a7
push esi
push dword [0x102b910c]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x11]
push eax
push 0x4000
push 0x378
push 2
push ebx
call fcn.1002bc80
mov esi, eax
jmp 0x101a326a
call fcn.1002c4d0
int3