Function at 0x100f0af0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov esi, ecx
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ecx + 4]
call fcn.100eec30
add esp, 4
cmp eax, 0x1e
jne 0x100f0b54
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x100f0be3
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 0x10]
mov edi, dword [esi + 0x3c]
call dword [section..00cfg]
push ebx
push edi
mov edi, dword [ebp + 0xc]
call ecx
add esp, 8
mov ebx, eax
mov dword [edi + 0x40], 0
test eax, eax
jne 0x100f0c51
jmp 0x100f0cc1
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test eax, eax
je 0x100f0bda
cmp dword [eax], 0
je 0x100f0bda
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
lea ebx, [ebp - 0x1c]
push dword [esi + 0x14]
push ecx
push edx
push eax
push ebx
call fcn.100ad250
add esp, 0x14
test eax, eax
je 0x100f0bf2
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x34], eax
add eax, 0xd8
push eax
call sym.nss3.dll_SECOID_GetAlgorithmTag_Util
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call sym.nss3.dll_SECOID_GetAlgorithmTag_Util
add esp, 4
cmp ebx, eax
jne 0x100f0bfb
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
call sym.nss3.dll_SECOID_GetAlgorithmTag_Util
add esp, 4
cmp ebx, 0x10
jne 0x100f0c04
push eax
call sym.nss3.dll_SECOID_FindOIDByTag_Util
add esp, 4
test eax, eax
je 0x100f0d21
mov eax, dword [eax + 0x14]
jmp 0x100f0d24
mov dword [esi + 0x34], 0xffffe02d
jmp 0x100f0c0d
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x40], 0
jmp 0x100f0cc1
mov dword [esi + 0x34], 0xffffe02d
jmp 0x100f0c0b
mov dword [esi + 0x34], 0xffffe02e
jmp 0x100f0c0b
mov dword [esi + 0x34], 0xffffe030
xor ebx, ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100f0c1d
push eax
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100f0c33
lock dec dword [eax + 0x48]
jne 0x100f0c33
push eax
call fcn.100d1c70
add esp, 4
test ebx, ebx
je 0x100f0cc1
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x10]
push eax
push ebx
call fcn.100cdef0
add esp, 8
mov dword [edi + 0x40], eax
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x100f0cc5
add edi, 0x10
call dword [section..00cfg]
push ebx
push edi
call ecx
add esp, 8
test eax, eax
je 0x100f0cc5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100f0c79
lock inc dword [ebx + 0x2c]
mov dword [eax], ebx
push edi
push ebx
call fcn.100f1cd0
add esp, 8
mov edi, eax
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
test edi, edi
je 0x100f0cf0
xor eax, eax
cmp dword [esi + 8], 0
setne al
mov ecx, dword [esi]
mov dword [ecx + 0x20], 0x100f0dc0
mov dword [ecx + 0x24], esi
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x18], eax
mov dword [esi + 0x28], edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
xor eax, eax
jmp 0x100f0ce8
xor ebx, ebx
jmp 0x100f0ccc
mov dword [esi + 0x34], 0xffffe031
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor eax, eax
cmp eax, dword [esi + 8]
sbb esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [0x101de200], 0
je 0x100f0dab
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100f0d78
mov eax, dword [eax + 0x28]
mov dword [esi + 0x34], eax
xor eax, eax
push eax
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f0ccc
xor eax, eax
dec eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
push 0
push 0x105
push eax
push ecx
push dword [ebp - 0x18]
call sym.nss3.dll_PK11_PubUnwrapSymKey
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x100f0c0d
cmp dword [0x101de200], 0
je 0x100f0db5
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100f0d93
mov eax, dword [eax + 0x28]
mov dword [esi + 0x34], eax
xor ebx, ebx
push ebx
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f0c0d
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100f0d0d
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100f0d61
call fcn.100745e0
jmp 0x100f0cfd
call fcn.100745e0
jmp 0x100f0d51