Function at 0x100a9df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x101db014]
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 0x100a9eb1
cmp dword [ebp + 0x1c], 0
je 0x100a9eb1
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.100caf80
add esp, 0x1c
test eax, eax
je 0x100aa0f4
mov edi, eax
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
xor ecx, ecx
dec ecx
mov dword [ebp - 0x38], ecx
test eax, eax
mov dword [ebp - 0x44], eax
je 0x100a9ec5
mov dword [ebp - 0x3c], edi
push 0x28
push eax
mov edi, eax
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x100a9ed5
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 0x100a9e97
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x14]
call sym.nss3.dll_SECOID_FindOIDByTag_Util
add esp, 4
test eax, eax
mov edi, dword [ebp - 0x3c]
je 0x100a9ee8
mov eax, dword [eax + 0x14]
jmp 0x100a9eeb
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100aa0f4
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x34], 0
jmp 0x100aa075
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x34], 0
mov edi, dword [ebp - 0x3c]
jmp 0x100aa075
xor eax, eax
dec eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ecx + 8]
cmp edx, ecx
je 0x100a9f0f
push eax
push ecx
call sym.nss3.dll_PK11_DoesMechanism
mov edx, dword [ebp - 0x38]
add esp, 8
test eax, eax
je 0x100a9f0f
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 8]
push dword [ebp + 0x24]
push 0
push ebx
push edi
push edx
call sym.nss3.dll_PK11_PBEKeyGen
add esp, 0x14
mov ecx, eax
xor eax, eax
dec eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x100a9f73
lea eax, [ebp - 0x18]
push 0
push ebx
push eax
push edi
call fcn.100cbb30
add esp, 0x10
cmp eax, 0xffffffff
je 0x100aa072
push eax
call sym.nss3.dll_PK11_GetPadMechanism
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
test ecx, ecx
mov ebx, dword [ebp - 0x2c]
je 0x100a9f7a
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
jmp 0x100a9f7e
xor ebx, ebx
jmp 0x100aa075
xor eax, eax
xor ecx, ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [edx + 8]
cmp dword [ebx + 8], eax
je 0x100a9fde
xor ecx, ecx
push ebx
push ecx
mov dword [ebp - 0x34], 0
push ecx
push 0x106
push dword [ebx]
push eax
call fcn.100cdfd0
add esp, 0x18
test eax, eax
je 0x100a9fbf
push ebx
mov ebx, eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov edx, dword [ebp + 0x1c]
jmp 0x100a9fde
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0x1c]
push 0x4a
push 0
call fcn.100a95e0
add esp, 8
test eax, eax
je 0x100a9ec9
mov dword [ebp - 0x34], eax
mov edx, eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x1c], 0
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x30], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100aa1d1
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x4c]
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 - 0x30], eax
mov ecx, dword [ecx + 0xf2]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebx + 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 - 0x30]
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 0x100aa108
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100aa08e
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov dword [ebp - 0x18], 0
test ebx, ebx
je 0x100aa09b
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100aa0ab
push eax
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 - 0x38]
cmp ecx, 0xffffffff
cmove esi, edi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100aa0f4
cmp ecx, 0xffffffff
jne 0x100aa0f4
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.1014dc80
mov eax, esi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
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
je 0x100aa06f
mov eax, dword [edi + 8]
mov ebx, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100aa1ef
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
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 - 0x30], eax
mov ecx, dword [ecx + 0xf2]
mov ebx, dword [esi + 0x20]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x48], eax
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
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
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
test ebx, ebx
jne 0x100aa06f
test eax, eax
mov edi, dword [ebp - 0x3c]
je 0x100aa072
mov eax, esi
add eax, 4
push edi
push eax
push dword [ebp - 0x44]
call sym.nss3.dll_SECOID_CopyAlgorithmID_Util
add esp, 0xc
mov dword [ebp - 0x38], eax
jmp 0x100aa072
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x100aa008
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x100aa13e