Function at 0x100a3a40
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 [0x101f1014]
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 0x100a3afd
cmp dword [ebp + 0x1c], 0
je 0x100a3afd
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.100c4490
add esp, 0x1c
test eax, eax
je 0x100a3c36
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 0x100a3b11
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 0x100a3b18
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 0x100a3ae7
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 0x100a3b24
mov eax, dword [eax + 0x14]
jmp 0x100a3b27
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100a3c36
xor esi, esi
jmp 0x100a3ba8
xor esi, esi
xor ecx, ecx
mov edi, dword [ebp - 0x38]
jmp 0x100a3baa
xor eax, eax
dec eax
mov edx, edi
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + 8]
cmp edi, ecx
je 0x100a3b49
push eax
push ecx
call sym.nss3.dll_PK11_DoesMechanism
mov edx, edi
add esp, 8
test eax, eax
je 0x100a3b49
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 0x100a3ba8
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x18]
push 0
push ebx
push eax
push edi
call fcn.100c5050
add esp, 0x10
cmp eax, 0xffffffff
je 0x100a3d43
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 0x100a3c4a
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
jmp 0x100a3c4e
xor ecx, ecx
xor ebx, ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a3bd3
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 0x100a3be0
push ecx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
test ebx, ebx
je 0x100a3bed
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 0x100a3c36
cmp ecx, 0xffffffff
jne 0x100a3c36
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.10157a00
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
xor ecx, ecx
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 8], eax
je 0x100a3cb1
xor ebx, ebx
push ecx
push ebx
push ebx
push 0x106
push dword [ecx]
push eax
call fcn.100c75b0
add esp, 0x18
test eax, eax
je 0x100a3c91
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 0x100a3cb1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov edx, edi
push 0x4a
push 0
call fcn.100a31d0
add esp, 8
test eax, eax
je 0x100a3d43
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 [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100a3e41
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 0x100a3d50
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
jmp 0x100a3bac
xor ebx, ebx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
jmp 0x100a3bac
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 0x100a3e39
mov eax, dword [edi + 8]
mov ebx, edi
mov edi, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100a3e5f
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 0x100a3d35
test eax, eax
mov edi, dword [ebp - 0x38]
je 0x100a3d38
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 0x100a3e2f
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 0x100a3d38
mov edi, dword [ebp - 0x38]
jmp 0x100a3d3b
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x34], eax
jmp 0x100a3cd8
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x34], eax
jmp 0x100a3d8b