Function at 0x100a8ab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x30]
push dword [edi + 0x1c]
push dword [edi + 0x28]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call fcn.100a88a0
add esp, 0x14
xor ebx, ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100a8cd4
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100a8b0c
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], 0
mov eax, dword [0x101f45d4]
je 0x100a8b1a
mov esi, dword [edi + 0x14]
jmp 0x100a8b1d
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x14], eax
jmp 0x100a8bd4
mov esi, dword [ecx + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100a8cfd
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x42]
call dword [section..00cfg]
lea esi, [ebp - 0x14]
push esi
push 0
push ebx
call ecx
add esp, 0xc
push dword [esi]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100a8baa
mov ebx, eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x42]
call dword [section..00cfg]
push esi
push ebx
push dword [ebp - 0x18]
call ecx
add esp, 0xc
test eax, eax
je 0x100a8bae
mov esi, eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push esi
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
jmp 0x100a8bb0
mov esi, ebx
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
mov ebx, 0
je 0x100a8bc9
cmp dword [eax + 0x30], 0
je 0x100a8bc9
push dword [edi + 0x14]
jmp 0x100a8bcc
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x1c]
test esi, esi
je 0x100a8cc5
cmp dword [edi + 0x18], 0
mov dword [ebp - 0x18], esi
je 0x100a8bfb
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], 0
mov eax, dword [0x101f45d4]
je 0x100a8c25
mov esi, dword [edi + 0x14]
jmp 0x100a8c28
mov eax, dword [edi + 0x20]
test eax, eax
je 0x100a8c0e
mov ecx, dword [ebp - 0x14]
cmp dword [edi + 0x24], ecx
jae 0x100a8ce8
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100a8caf
mov esi, dword [ecx + 0x3c]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100a8d1a
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov esi, dword [ebp - 0x14]
mov edx, edi
mov edi, dword [edi + 8]
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
mov ebx, dword [edx + 0x10]
call dword [section..00cfg]
push 0
push edi
push esi
push dword [ebp - 0x18]
push ebx
call ecx
add esp, 0x14
test eax, eax
je 0x100a8c89
push eax
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100a8c8b
xor esi, esi
xor ebx, ebx
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a8ca4
cmp dword [eax + 0x30], 0
je 0x100a8ca4
push dword [edi + 0x14]
jmp 0x100a8ca7
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x100a8cc1
push dword [ebp - 0x18]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100a8cd2
push 1
push edi
call sym.nss3.dll_PK11_DestroyContext
add esp, 8
jmp 0x100a8cd4
mov ebx, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x24], eax
xor esi, esi
jmp 0x100a8caf
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100a8b2e
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100a8c39