Function at 0x100c9300
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 [0x101ef014]
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 0x100c940a
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.100bc280
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [esi], 0
je 0x100c9378
cmp dword [edi + 0x30], 0
jne 0x100c93a1
mov esi, dword [edi + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100c95a3
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 0x100c943d
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100c93cf
cmp dword [edi + 0x30], 0
jne 0x100c93dd
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.100bc340
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100c941e
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 0x100c9429
mov dword [esi], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
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 0x100c9475
cmp dword [edi + 0x30], 0
jne 0x100c9483
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.100bc340
add esp, 0xc
test ebx, ebx
mov esi, dword [ebp + 0x24]
je 0x100c94bc
push dword [ebp - 0x2c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
jmp 0x100c9423
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x100c94c6
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 0x100c952c
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.100c5a00
add esp, 0x18
mov edi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100c9513
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100c9429
xor eax, eax
test edi, edi
mov ebx, 0x30
cmovne ebx, eax
jmp 0x100c9427
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.100cdc10
add esp, 0x14
test eax, eax
je 0x100c957e
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.100c5a00
add esp, 0x18
mov edi, eax
lock dec dword [ebx + 0x48]
jne 0x100c9502
push ebx
call fcn.100c9d60
add esp, 4
jmp 0x100c9502
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 0x100c9423
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100c9391