Function at 0x100ca8c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0x38], edx
mov edi, ecx
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 1
lea eax, [ebx - 1]
lea ecx, [eax + eax*2]
cmp dword [edx + ecx*4], 0x161
cmove ebx, eax
mov esi, dword [ebp + 0xc]
push dword [esi + 8]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100ca9ca
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x28]
push esi
push edi
call fcn.100bd840
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [esi], 0
je 0x100ca938
cmp dword [edi + 0x30], 0
jne 0x100ca961
mov esi, dword [edi + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100cab63
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x86]
call dword [section..00cfg]
push dword [ebp - 0x38]
push ebx
mov esi, dword [ebp - 0x34]
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x100ca9fd
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100ca98f
cmp dword [edi + 0x30], 0
jne 0x100ca99d
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
push esi
push edi
call fcn.100bd900
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100ca9de
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov ebx, 2
xor edi, edi
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x100ca9e9
mov dword [esi], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [eax + 0x8a]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
mov ebx, dword [eax + 8]
call dword [section..00cfg]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
push ebx
push esi
mov esi, dword [ebp - 0x34]
push esi
call ecx
add esp, 0x14
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100caa35
cmp dword [edi + 0x30], 0
jne 0x100caa43
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
push esi
push edi
call fcn.100bd900
add esp, 0xc
test ebx, ebx
mov esi, dword [ebp + 0x24]
je 0x100caa7c
push dword [ebp - 0x2c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
jmp 0x100ca9e3
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x100caa86
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
push dword [ebp + 0x10]
push edi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x100caaec
lea eax, [ebp - 0x24]
mov ecx, edi
mov edx, dword [ebp + 0x10]
push dword [ebp + 0x20]
push eax
push dword [ebp - 0x30]
push ebx
push dword [ebp + 0x28]
push 4
call fcn.100c6fb0
add esp, 0x18
mov edi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100caad3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100ca9e9
xor eax, eax
test edi, edi
mov ebx, 0x30
cmovne ebx, eax
jmp 0x100ca9e7
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor edi, edi
push dword [ebp + 0x20]
push 1
push edi
push edi
push eax
call fcn.100cf1d0
add esp, 0x14
test eax, eax
je 0x100cab3e
mov ebx, eax
lea eax, [ebp - 0x24]
mov ecx, ebx
mov edx, dword [ebp + 0x10]
push dword [ebp + 0x20]
push eax
push dword [ebp - 0x30]
push dword [ebp + 0x14]
push dword [ebp + 0x28]
push 4
call fcn.100c6fb0
add esp, 0x18
mov edi, eax
lock dec dword [ebx + 0x48]
jne 0x100caac2
push ebx
call fcn.100cb320
add esp, 4
jmp 0x100caac2
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x2c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, 0x30
jmp 0x100ca9e3
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100ca951