Function at 0x100a2480
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
test ebx, ebx
je 0x100a253d
cmp dword [ebp + 0x1c], 0
je 0x100a253d
xor esi, esi
lea eax, [ebp - 0x14]
push dword [ebp + 0x20]
push esi
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100c2ee0
add esp, 0x1c
test eax, eax
je 0x100a2676
mov edi, eax
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
xor ecx, ecx
dec ecx
mov dword [ebp - 0x3c], ecx
test eax, eax
mov dword [ebp - 0x44], eax
je 0x100a2551
mov dword [ebp - 0x38], edi
push 0x28
push eax
mov edi, eax
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x100a2558
mov esi, eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [esi + 0x14], xmm0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x24], 0
mov dword [esi], edi
test eax, eax
jne 0x100a2527
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 8]
mov edi, eax
push dword [ebp - 0x14]
call sym.nss3.dll_SECOID_FindOIDByTag_Util
add esp, 4
test eax, eax
je 0x100a2564
mov eax, dword [eax + 0x14]
jmp 0x100a2567
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100a2676
xor esi, esi
jmp 0x100a25e8
xor esi, esi
xor ecx, ecx
mov edi, dword [ebp - 0x38]
jmp 0x100a25ea
xor eax, eax
dec eax
mov edx, edi
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + 8]
cmp edi, ecx
je 0x100a2589
push eax
push ecx
call sym.nss3.dll_PK11_DoesMechanism
mov edx, edi
add esp, 8
test eax, eax
je 0x100a2589
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 8]
push dword [ebp + 0x24]
push 0
push ebx
mov edi, dword [ebp - 0x38]
push edi
push edx
call sym.nss3.dll_PK11_PBEKeyGen
add esp, 0x14
mov ecx, eax
xor eax, eax
dec eax
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x100a25e8
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x18]
push 0
push ebx
push eax
push edi
call fcn.100c3aa0
add esp, 0x10
cmp eax, 0xffffffff
je 0x100a2783
push eax
call sym.nss3.dll_PK11_GetPadMechanism
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
test ecx, ecx
je 0x100a268a
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
jmp 0x100a268e
xor ecx, ecx
xor ebx, ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a2613
push 1
push eax
mov dword [ebp - 0x30], ebx
mov ebx, edi
mov edi, ecx
call sym.nss3.dll_SECITEM_FreeItem_Util
mov ecx, edi
mov edi, ebx
mov ebx, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x100a2620
push ecx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
test ebx, ebx
je 0x100a262d
push ebx
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
mov eax, edi
add eax, 0xc
mov ebx, edi
xor edi, edi
push edi
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push edi
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xffffffff
cmove esi, edi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100a2676
cmp ecx, 0xffffffff
jne 0x100a2676
push 1
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [edi + 8]
cmp dword [edx + 8], eax
je 0x100a26f1
xor ebx, ebx
push edx
push ebx
push ebx
push 0x106
push dword [edx]
push eax
call fcn.100c6000
add esp, 0x18
test eax, eax
je 0x100a26d1
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jmp 0x100a26f1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov edx, edi
push 0x4a
push 0
call fcn.100a1c10
add esp, 8
test eax, eax
je 0x100a2783
mov ebx, eax
mov edi, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], 0
mov eax, dword [edi + 8]
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100a2881
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x34]
mov dword [ebx + 8], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x34], eax
mov ecx, dword [ecx + 0xf2]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax + 4]
call dword [section..00cfg]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
push edx
push 0
push dword [ebp - 0x40]
push ebx
push eax
push dword [ebp - 0x34]
call ecx
add esp, 0x18
mov ebx, eax
mov eax, dword [edi + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x100a2790
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
jmp 0x100a25ec
xor ebx, ebx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
jmp 0x100a25ec
push dword [ebp - 0x1c]
push dword [ebp - 0x44]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov dword [esi + 0x20], eax
test eax, eax
mov ebx, dword [ebp - 0x30]
je 0x100a2879
mov eax, dword [edi + 8]
mov ebx, edi
mov edi, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100a289f
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x34]
mov dword [edi + 8], eax
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x48], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x40], eax
mov ecx, dword [ecx + 0xf2]
mov edi, dword [esi + 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
mov ebx, dword [eax + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x48]
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x40]
call ecx
add esp, 0x18
mov edi, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
test edi, edi
jne 0x100a2775
test eax, eax
mov edi, dword [ebp - 0x38]
je 0x100a2778
lea eax, [esi + 4]
push edi
push eax
mov ebx, edi
mov edi, dword [ebp - 0x44]
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x100a286f
lea eax, [ebx + 0xc]
mov ecx, esi
add ecx, 0x10
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov edi, ebx
jmp 0x100a2778
mov edi, dword [ebp - 0x38]
jmp 0x100a277b
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x34], eax
jmp 0x100a2718
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x34], eax
jmp 0x100a27cb