Function at 0x10087dc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x1019b6d4
lea edi, [ecx + 4]
mov dword [ecx + 4], 0x1019b6dc
lea eax, [ebp - 0x18]
push eax
call fcn.100797e0
add esp, 4
mov ebx, dword [ebp - 0x18]
lea ecx, [ebx + 0x28c]
push esi
call fcn.10073490
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x101c1e84]
bt ecx, eax
jae 0x10087e1f
push ebx
call fcn.10069280
add esp, 4
call fcn.100872e0
mov ecx, eax
push 0
push edi
call fcn.10087500
mov edi, dword [esi + 8]
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1008813d
mov dword [ebp - 0x34], edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10087e86
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x1e4]
cmp edx, dword [esi + 0x14]
jne 0x10087e86
mov ebx, dword [ecx + 0x14]
mov dword [esi + 0xc], 0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [ebp - 0x14]
mov ecx, ebx
push eax
push dword [ebp - 0x1c]
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
mov edi, dword [eax + 0x1b8]
test edi, edi
je 0x100880aa
mov edx, edi
shr edx, 1
and edx, 0x55555555
mov eax, edi
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
cmp eax, 1
mov dword [ebp - 0x1c], eax
ja 0x10087ee7
lea ebx, [edi - 1]
and ebx, ecx
jmp 0x10087ef5
mov ebx, ecx
cmp ecx, edi
jb 0x10087ef5
mov eax, ecx
xor edx, edx
div edi
mov ebx, edx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x1b4]
mov dword [ebp - 0x30], eax
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x100880aa
mov edi, dword [eax]
test edi, edi
je 0x100880aa
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
jmp 0x10087f3f
cmp dword [edi + 8], ecx
je 0x10087f7f
mov edi, dword [edi]
test edi, edi
je 0x100880aa
mov eax, dword [edi + 4]
cmp eax, ecx
je 0x10087f30
cmp dword [ebp - 0x1c], 1
ja 0x10087f60
and eax, dword [ebp - 0x24]
jmp 0x10087f76
mov edx, dword [ebp - 0x20]
cmp eax, edx
jb 0x10087f76
mov esi, ecx
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
mov ecx, esi
mov esi, dword [ebp - 0x28]
cmp eax, ebx
je 0x10087f35
jmp 0x100880aa
cmp dword [ebp - 0x1c], 1
ja 0x10087f8a
and ecx, dword [ebp - 0x24]
jmp 0x10087f9b
mov edx, dword [ebp - 0x20]
cmp ecx, edx
jb 0x10087f9b
mov eax, ecx
mov ecx, edx
xor edx, edx
div ecx
mov ecx, edx
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + ecx*4]
nop word cs:[eax + eax]
mov ebx, eax
mov eax, dword [eax]
cmp eax, edi
jne 0x10087fb0
mov eax, dword [ebp - 0x2c]
add eax, 0x1bc
cmp ebx, eax
je 0x10087fec
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x1c], 1
ja 0x10087fd2
and eax, dword [ebp - 0x24]
jmp 0x10087fe8
mov edx, dword [ebp - 0x20]
cmp eax, edx
jb 0x10087fe8
mov esi, ecx
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
mov ecx, esi
mov esi, dword [ebp - 0x28]
cmp eax, ecx
je 0x10088024
mov eax, dword [edi]
test eax, eax
je 0x1008801a
mov eax, dword [eax + 4]
cmp dword [ebp - 0x1c], 1
ja 0x10088000
and eax, dword [ebp - 0x24]
jmp 0x10088016
mov edx, dword [ebp - 0x20]
cmp eax, edx
jb 0x10088016
mov esi, ecx
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
mov ecx, esi
mov esi, dword [ebp - 0x28]
cmp eax, ecx
je 0x10088024
mov eax, dword [ebp - 0x30]
mov dword [eax + ecx*4], 0
mov edx, dword [edi]
test edx, edx
je 0x10088038
mov eax, dword [edx + 4]
cmp dword [ebp - 0x1c], 1
ja 0x1008803c
and eax, dword [ebp - 0x24]
jmp 0x10088058
xor edx, edx
jmp 0x1008806a
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x20]
cmp eax, edx
jb 0x10088055
mov esi, ecx
mov ecx, edx
xor edx, edx
div ecx
mov ecx, esi
mov esi, dword [ebp - 0x28]
mov eax, edx
mov edx, dword [ebp - 0x1c]
cmp eax, ecx
je 0x1008806a
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0x1b4]
mov dword [ecx + eax*4], ebx
mov edx, dword [edi]
mov dword [ebx], edx
mov dword [edi], 0
mov eax, dword [ebp - 0x2c]
dec dword [eax + 0x1c0]
test edi, edi
je 0x100880aa
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x100880a1
lock dec dword [ebx + 4]
jne 0x100880a1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
call dword [section..00cfg]
mov ecx, ebx
push 1
call dword [ebp - 0x1c]
push edi
call fcn.10145bd4
add esp, 4
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, dword [esi + 8]
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100880e4
mov ecx, dword [edi + 0x19c]
mov dword [eax + ecx*8], 0
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x1a0]
mov dword [eax + ecx*8 + 4], edx
mov edi, dword [esi + 0xc]
mov dword [esi + 0xc], 0
test edi, edi
je 0x10088102
mov ecx, edi
call fcn.100ca260
push edi
call fcn.10145bd4
add esp, 4
mov eax, dword [esi + 8]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x101c1e84]
bt edx, ecx
jae 0x10088124
push eax
call fcn.10069280
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
call fcn.10083990
jmp 0x10087e43