Function at 0x1008af20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x101db014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 4]
lea esi, [ebp - 0x30]
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
lea eax, [ebp - 0x3c]
mov dword [eax], 1
xor edi, edi
push edi
push eax
push edi
push esi
push dword [0x101deccc]
call fcn.100a0ba0
add esp, 0x14
mov ebx, eax
push edi
push edi
push edi
push esi
push dword [ebp + 8]
call fcn.100a6e90
add esp, 0x14
test eax, eax
je 0x1008afc6
mov esi, eax
push edi
lea eax, [ebp - 0x3c]
push eax
push edi
push esi
call fcn.100a34e0
add esp, 0x10
mov edi, eax
push esi
call fcn.100a33f0
add esp, 4
test ebx, ebx
je 0x1008b031
test edi, edi
je 0x1008afce
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov dword [eax], ebx
mov dword [eax + 4], edi
xor edx, edx
mov dword [eax + 8], edx
mov dword [ecx], 1
push edx
push ecx
push edx
push eax
call fcn.100a34e0
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x1008afd7
test ebx, ebx
je 0x1008b065
lock inc dword [ebx + 4]
xor edi, edi
mov dword [ebp - 0x40], ebx
mov ecx, ebx
xor edx, edx
call fcn.100a1930
test eax, eax
je 0x1008b045
mov esi, eax
mov ebx, dword [0x101dec48]
test ebx, ebx
je 0x1008b03b
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1008b11d
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x44]
mov dword [ebx + 8], eax
mov eax, dword [0x101dec48]
mov ebx, dword [esi + 0x15c]
test eax, eax
je 0x1008b041
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1008b041
test edi, edi
je 0x1008b063
lock inc dword [edi + 4]
jmp 0x1008b065
mov ebx, dword [esi + 0x15c]
test ebx, ebx
je 0x1008b050
push ebx
call fcn.1009fed0
add esp, 4
jmp 0x1008b068
mov eax, dword [esi]
test eax, eax
je 0x1008b068
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
jmp 0x1008b068
xor edi, edi
mov dword [ebp - 0x40], edi
test edi, edi
je 0x1008b0d5
mov ecx, edi
xor edx, edx
call fcn.100a1930
test eax, eax
je 0x1008b0cc
mov esi, eax
mov ebx, dword [0x101dec48]
test ebx, ebx
je 0x1008b0c2
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1008b13b
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov eax, dword [0x101dec48]
mov edi, dword [esi + 0x15c]
test eax, eax
je 0x1008b0c8
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1008b0c8
mov edi, dword [esi + 0x15c]
test edi, edi
je 0x1008b10a
push edi
call fcn.1009fed0
add esp, 4
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x1008b0f4
mov ecx, edi
xor edx, edx
call fcn.100a1930
mov esi, eax
test eax, eax
jne 0x1008b0f6
push edi
call fcn.1009fed0
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x1008b0d5
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
jmp 0x1008b0d5
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x44], eax
jmp 0x1008b007
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x1008b09b