Function at 0x100a67a0
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
call fcn.100a6710
add esp, 4
mov esi, eax
test eax, eax
je 0x100a6a7a
mov edi, dword [ebp + 8]
push edi
call fcn.100cd0c0
add esp, 4
test eax, eax
je 0x100a6842
xor ecx, ecx
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x24], eax
je 0x100a67f6
mov eax, dword [ebx + 0x118]
test eax, eax
je 0x100a67f6
xor ecx, ecx
cmp byte [eax], 0
cmovne ecx, eax
mov dword [ebp - 0x18], ecx
mov ebx, dword [0x101f5020]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a6aee
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 [0x101f5020]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x100a6856
mov dword [ebp - 0x14], ebx
jmp 0x100a686c
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100a6a7a
push edi
call fcn.1009bef0
add esp, 4
mov ebx, eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100a6a6f
lea eax, [ebx + 0x28]
push dword [esi + 4]
push dword [esi + 8]
push eax
push dword [ebx]
call fcn.10094e70
add esp, 0x10
cmp dword [ebx + 0x28], 0
je 0x100a6a6f
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100a68ed
push 0x10
push 0
mov edi, eax
call fcn.10094240
add esp, 8
test eax, eax
je 0x100a6a6f
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.10096330
add esp, 0x14
mov dword [ebp - 0x20], eax
push edi
call fcn.10098840
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x100a6a6f
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.100970e0
add esp, 0x2c
test eax, eax
je 0x100a6a46
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x100a69ed
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
push dword [0x101f45d4]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100a6b0b
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.1009e410
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 [0x101f5020]
mov dword [ebp - 0x1c], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100a6b29
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 [0x101f5020]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
push ebx
call fcn.1009cac0
add esp, 8
lock inc dword [ebx + 4]
lea edi, [ebp - 0x14]
push 1
push edi
push dword [0x101f50a0]
call fcn.1009fa10
add esp, 0xc
mov ecx, dword [edi]
cmp dword [ecx + 0x54], 0
je 0x100a6a22
xor edx, edx
inc edx
call fcn.1009b6a0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
push ecx
call fcn.10099ca0
add esp, 4
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push edi
call fcn.10096ae0
add esp, 4
xor esi, esi
jmp 0x100a6ac2
call fcn.10094920
cmp eax, 0x23
jne 0x100a6a6f
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 0x100a6ac2
push dword [ebp - 0x24]
call fcn.10096ae0
add esp, 4
call fcn.100840b0
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
cmp dword [0x101f4f80], 0
je 0x100a6b47
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100a6ad6
xor esi, esi
dec esi
cmp dword [eax + 0x28], 0xffffe09b
je 0x100a6ac2
push 0
push 0xffffe018
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100a6aa7
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100a6815
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x100a695c
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x100a69b2
call fcn.1001b2e0
jmp 0x100a6a97