Function at 0x101a84a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, ecx
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [edx]
mov esi, dword [ecx + 4]
mov eax, dword [ecx + 8]
cmp esi, eax
jae 0x101a84d4
mov dword [esi], edi
mov word [esi + 4], 0
add esi, 8
mov dword [ebx + 4], esi
jmp 0x101a86bd
mov edx, dword [ebx]
sub esi, edx
sar esi, 3
lea ecx, [esi + 1]
cmp ecx, 0x20000000
jae 0x101a8876
sub eax, edx
mov edx, eax
sar edx, 3
sar eax, 2
cmp eax, ecx
cmovb eax, ecx
cmp edx, 0xfffffff
mov ecx, 0x1fffffff
cmovb ecx, eax
test ecx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], edi
je 0x101a861a
mov edi, ecx
call fcn.101aafb0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea edi, [edi*8]
mov eax, 0x20
mov ecx, 0x20
test edi, edi
je 0x101a8540
bsr ecx, edi
xor ecx, 0x1f
sub eax, ecx
mov cl, byte [eax + 0x102641e0]
mov edx, edi
shr edx, cl
and edx, 7
mov ecx, dword [eax*4 + 0x10264204]
mov dword [ebp - 0x34], edi
and ecx, edi
lea edi, [edx + eax*8]
cmp ecx, 1
sbb edi, 0xffffffff
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp byte [eax], 2
jne 0x101a8584
mov al, byte [0x102b323c]
cmp al, 2
je 0x101a886c
movzx ecx, word [edi + edi + 0x10263fcc]
mov eax, dword [ebp - 0x30]
cmp byte [eax + 2], 0
je 0x101a86cf
mov dword [ebp - 0x1c], ecx
mov ebx, dword [0x102b910c]
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test edi, edi
jne 0x101a873a
cmp ebx, 2
mov edx, dword [ebp - 0x1c]
jb 0x101a8746
add dword [ebx + 0x310], 1
adc dword [ebx + 0x314], 0
cmp dx, 0x31
jae 0x101a8760
cmp dword [ebx + edx*8], 0
mov ecx, dword [ebp - 0x2c]
je 0x101a882d
add dword [ebx + 0x318], 1
adc dword [ebx + 0x31c], 0
mov edi, dword [ebx + edx*8]
mov eax, dword [edi]
test eax, eax
je 0x101a861e
mov ecx, eax
not ecx
cmp dword [edi + 4], ecx
jne 0x101a8867
bswap eax
prefetcht0 byte [eax]
mov ecx, dword [ebp - 0x2c]
jmp 0x101a8620
xor edi, edi
jmp 0x101a8646
bswap eax
add byte [ebx + edx*8 + 4], 0xff
mov dword [ebx + edx*8], eax
movzx eax, word [ebx + edx*8 + 6]
mov dword [ebp - 0x18], eax
movzx eax, word [ebx + edx*8 + 6]
sub dword [ebx + 0x308], eax
test edi, edi
mov ebx, dword [ebp - 0x20]
je 0x101a877c
lea edx, [edi + esi*8]
lea eax, [edi + ecx*8]
mov ecx, dword [ebp - 0x38]
mov dword [edi + esi*8], ecx
mov word [edi + esi*8 + 4], 0
lea ecx, [edi + esi*8]
add ecx, 8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp edi, esi
je 0x101a8699
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [edi - 8]
mov dword [edx - 8], ebx
movzx ebx, byte [edi - 4]
and bl, 1
mov byte [edx - 4], bl
movzx ebx, byte [edi - 3]
and bl, 1
mov byte [edx - 3], bl
add edi, 0xfffffff8
add edx, 0xfffffff8
cmp esi, edi
jne 0x101a8670
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebx]
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
test edi, edi
je 0x101a86bd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov ecx, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.101a88b0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
shl ecx, 5
mov eax, dword [ebp - 0x24]
lea edi, [eax + ecx]
add edi, 0x10
add eax, 8
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x28], 0
mov ebx, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
mov dword [ebp - 0x24], eax
push eax
call ebx
test al, al
jne 0x101a87e5
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
test ecx, ecx
jle 0x101a8716
pause
add eax, 0xffffffff
jne 0x101a8709
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x28], 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 - 0x28], 0x3e8
mov eax, dword [ebp - 0x24]
jl 0x101a86f5
jmp 0x101a87de
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x101a85bb
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
push eax
push edx
call fcn.101a1710
mov edx, dword [ebp - 0x1c]
mov edi, eax
mov ecx, dword [ebp - 0x2c]
jmp 0x101a863b
add dword [ebx + 0x330], 1
adc dword [ebx + 0x334], 0
add dword [ebx + 0x320], 1
adc dword [ebx + 0x324], 0
shl edx, 5
mov eax, dword [ebp - 0x24]
lea edi, [eax + edx]
add edi, 0x10
add eax, 8
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x28], 0
mov ebx, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
mov dword [ebp - 0x24], eax
push eax
call ebx
test al, al
jne 0x101a87e5
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
test ecx, ecx
jle 0x101a87bf
pause
add eax, 0xffffffff
jne 0x101a87b2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x28], 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 - 0x28], 0x3e8
mov eax, dword [ebp - 0x24]
jl 0x101a87a2
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov ecx, edi
mov eax, dword [edi]
mov edi, dword [eax]
test edi, edi
je 0x101a887d
mov byte [ebp - 0x11], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x101a8810
mov edx, ecx
not edx
cmp dword [edi + 4], edx
mov ebx, dword [ebp - 0x20]
jne 0x101a8867
bswap ecx
prefetcht0 byte [ecx]
jmp 0x101a8815
bswap ecx
mov ebx, dword [ebp - 0x20]
mov dword [eax], ecx
add word [eax + 0xc], 1
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 0x2c]
jmp 0x101a8646
add dword [ebx + 0x328], 1
adc dword [ebx + 0x32c], 0
add dword [ebx + 0x320], 1
adc dword [ebx + 0x324], 0
mov ecx, ebx
push edx
call fcn.101a3420
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebx + edx*8]
test edi, edi
jne 0x101a85fd
jmp 0x101a877c
call fcn.1002c4d0
call fcn.101a12f0
jmp 0x101a8584
mov ecx, ebx
call fcn.1002bb40
lea eax, [ebp - 0x11]
push eax
push 0x4000
push dword [ebp - 0x34]
push 0
push dword [ebp - 0x30]
call fcn.1002bc80
mov edi, eax
test eax, eax
mov ebx, dword [ebp - 0x20]
jne 0x101a881c
xor edi, edi
jmp 0x101a881c