Function at 0x100a51e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
call fcn.100a5150
add esp, 4
mov esi, eax
test eax, eax
je 0x100a54ba
mov edi, dword [ebp + 8]
push edi
call fcn.100cbb00
add esp, 4
test eax, eax
je 0x100a5282
xor ecx, ecx
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x24], eax
je 0x100a5236
mov eax, dword [ebx + 0x118]
test eax, eax
je 0x100a5236
xor ecx, ecx
cmp byte [eax], 0
cmovne ecx, eax
mov dword [ebp - 0x18], ecx
mov ebx, dword [0x101f2ff0]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a552e
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 0x15c]
push dword [0x101f2ff0]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x100a5296
mov dword [ebp - 0x14], ebx
jmp 0x100a52ac
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100a54ba
push edi
call fcn.1009a930
add esp, 4
mov ebx, eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100a54af
lea eax, [ebx + 0x28]
push dword [esi + 4]
push dword [esi + 8]
push eax
push dword [ebx]
call fcn.100938d0
add esp, 0x10
cmp dword [ebx + 0x28], 0
je 0x100a54af
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100a532d
push 0x10
push 0
mov edi, eax
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x100a54af
mov ecx, edi
mov edi, eax
mov eax, dword [ebp - 0x24]
lock inc dword [eax + 8]
mov dword [edi + 4], eax
mov dword [edi], ecx
mov dword [edi + 8], 1
mov ebx, dword [ebp - 0x14]
lea eax, [ebx + 0x40]
lea ecx, [ebx + 0x28]
push eax
push ecx
push dword [ebp + 0x14]
push 0
push edi
call fcn.10094d90
add esp, 0x14
mov dword [ebp - 0x20], eax
push edi
call fcn.100972a0
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x100a54af
lea eax, [ebx + 0x48]
mov dword [ebp - 0x1c], eax
lea ecx, [ebx + 0x40]
lea edx, [ebx + 0x38]
lea edi, [ebx + 0x30]
lea eax, [ebx + 0x28]
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ecx
push edx
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x24]
call fcn.10095b40
add esp, 0x2c
test eax, eax
je 0x100a5486
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x100a542d
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
push dword [0x101f25a4]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100a554b
mov edi, dword [ebp - 0x1c]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
push ebx
mov edi, dword [ebp - 0x28]
push dword [edi + 0x14]
call fcn.1009ce50
add esp, 8
mov eax, dword [edi + 0x14]
push dword [eax + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [ebx + 0x1c], 0
mov eax, dword [0x101f2ff0]
mov dword [ebp - 0x1c], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100a5569
mov edi, dword [ebp - 0x1c]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x150], 0
mov dword [eax + 0x14c], 1
push dword [0x101f2ff0]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
push ebx
call fcn.1009b500
add esp, 8
lock inc dword [ebx + 4]
lea edi, [ebp - 0x14]
push 1
push edi
push dword [0x101f3070]
call fcn.1009e450
add esp, 0xc
mov ecx, dword [edi]
cmp dword [ecx + 0x54], 0
je 0x100a5462
xor edx, edx
inc edx
call fcn.1009a0e0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
push ecx
call fcn.100986e0
add esp, 4
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push edi
call fcn.10095540
add esp, 4
xor esi, esi
jmp 0x100a5502
call fcn.10093380
cmp eax, 0x23
jne 0x100a54af
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor esi, esi
dec esi
jmp 0x100a5502
push dword [ebp - 0x24]
call fcn.10095540
add esp, 4
call fcn.10082b10
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
cmp dword [0x101f2f50], 0
je 0x100a5587
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100a5516
xor esi, esi
dec esi
cmp dword [eax + 0x28], 0xffffe09b
je 0x100a5502
push 0
push 0xffffe018
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100a54e7
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100a5255
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x100a539c
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x100a53f2
call fcn.100029d0
jmp 0x100a54d7