Function at 0x101a8c30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.101aafb0
mov esi, eax
mov edi, eax
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 0xffffffff
cmp byte [eax], 2
jne 0x101a8c69
mov al, byte [0x102b323c]
cmp al, 2
je 0x101a8e65
mov dword [ebp - 0x24], edi
cmp byte [edi + 2], 0
je 0x101a8d11
mov edi, dword [0x102b910c]
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test ebx, ebx
jne 0x101a8d70
cmp edi, 2
jb 0x101a8d80
add dword [edi + 0x310], 1
adc dword [edi + 0x314], 0
mov ebx, dword [edi + 0x60]
test ebx, ebx
je 0x101a8d9a
add dword [edi + 0x318], 1
adc dword [edi + 0x31c], 0
mov eax, dword [ebx]
test eax, eax
je 0x101a8cdf
mov ecx, eax
not ecx
cmp dword [ebx + 4], ecx
jne 0x101a8e60
bswap eax
prefetcht0 byte [eax]
jmp 0x101a8ce1
bswap eax
add byte [edi + 0x64], 0xff
mov dword [edi + 0x60], eax
movzx eax, word [edi + 0x66]
mov dword [ebp - 0x18], eax
sub dword [edi + 0x308], eax
test ebx, ebx
je 0x101a8dca
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [esi + 0x190]
add esi, 8
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0
mov edi, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
push esi
call edi
test al, al
jne 0x101a8e27
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
test ecx, ecx
jle 0x101a8d4f
pause
add eax, 0xffffffff
jne 0x101a8d42
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
add eax, eax
cmp eax, 0x40
mov ecx, 0x40
cmovge eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0x3e8
jl 0x101a8d2e
jmp 0x101a8e20
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
cmp edi, 2
jae 0x101a8c9e
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push eax
push 0xc
call fcn.101a1710
mov ebx, eax
test ebx, ebx
jne 0x101a8cfd
jmp 0x101a8dca
add dword [edi + 0x328], 1
adc dword [edi + 0x32c], 0
add dword [edi + 0x320], 1
adc dword [edi + 0x324], 0
mov ecx, edi
push 0xc
call fcn.101a3420
mov ebx, dword [edi + 0x60]
test ebx, ebx
jne 0x101a8cc5
lea ebx, [esi + 0x190]
add esi, 8
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0
mov edi, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
push esi
call edi
test al, al
jne 0x101a8e27
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
test ecx, ecx
jle 0x101a8e04
pause
add eax, 0xffffffff
jne 0x101a8df7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
add eax, eax
cmp eax, 0x40
mov ecx, 0x40
cmovge eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0x3e8
jl 0x101a8de7
push esi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov ecx, ebx
mov eax, dword [ebx]
mov ebx, dword [eax]
test ebx, ebx
je 0x101a8e6f
mov byte [ebp - 0x11], 0
mov ecx, dword [ebx]
test ecx, ecx
je 0x101a8e4b
mov edx, ecx
not edx
cmp dword [ebx + 4], edx
jne 0x101a8e60
bswap ecx
prefetcht0 byte [ecx]
jmp 0x101a8e4d
bswap ecx
mov dword [eax], ecx
add word [eax + 0xc], 1
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x101a8cfd
call fcn.1002c4d0
call fcn.101a12f0
jmp 0x101a8c69
lea eax, [ebp - 0x11]
push eax
push 0x4000
push 0x14
push 0
push dword [ebp - 0x24]
call fcn.1002bc80
mov ebx, eax
test eax, eax
jne 0x101a8e54
xor ebx, ebx
jmp 0x101a8e54