Function at 0x1010ffe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [ebp + 8]
mov ecx, dword [0x101db014]
xor ecx, ebp
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
call fcn.10118270
add esp, 4
xor esi, esi
dec esi
test eax, eax
je 0x101104a9
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1011003f
cmp dword [ebp + 0x10], 0
je 0x1011003f
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10110053
mov ecx, dword [ebp + 0x18]
cmp ecx, 0x19
jb 0x1011005d
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101104a9
mov dword [esp + 0x18], 0
jmp 0x10110072
lea esi, [esp + 0x20]
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0xd8]
xor esi, esi
push eax
call sym.nss3.dll_SECOID_GetAlgorithmTag_Util
add esp, 4
cmp eax, 0x7b
jle 0x101100b2
cmp eax, 0x7c
je 0x101100d8
cmp eax, 0xc8
je 0x101100e6
cmp eax, 0x133
jne 0x10110151
mov esi, dword [ebx + 0x130]
add esi, esi
and esi, 0x100
jmp 0x10110151
cmp eax, 0x10
je 0x101100c0
cmp eax, 0x61
jne 0x10110151
movzx esi, word [ebx + 0x130]
mov eax, esi
and eax, 0x80
shr esi, 4
and esi, 2
or esi, eax
jmp 0x10110151
mov esi, dword [ebx + 0x130]
shr esi, 5
and esi, 4
jmp 0x10110151
mov eax, dword [ebx + 0x130]
mov esi, eax
shr esi, 3
and esi, 0x10
test al, 0x20
je 0x10110151
lea eax, [ebx + 0x90]
push eax
call sym.nss3.dll_SECOID_GetAlgorithmTag_Util
add esp, 4
cmp eax, 0xc8
jle 0x1011011f
lea ecx, [eax - 0x113]
cmp ecx, 6
jae 0x10110136
mov ax, 0x40
jmp 0x10110149
lea ecx, [eax - 0x10]
cmp ecx, 5
jb 0x10110145
add eax, 0xffffff3e
cmp eax, 3
jb 0x10110145
jmp 0x101104c9
lea ecx, [eax - 0x133]
cmp ecx, 2
jae 0x101104be
mov ax, 0x20
movzx ecx, si
movzx esi, ax
or esi, ecx
xor ebx, ebx
mov eax, dword [esp + 0x18]
cmp eax, 1
sbb ebx, ebx
bts ebx, eax
and bx, si
je 0x101101e0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.10110500
test eax, eax
je 0x101104a6
mov dword [esp + 0x18], eax
push 0x40
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov dword [esp + 0x10], 0xffffe013
test eax, eax
je 0x101101f4
mov dword [esp + 0x14], eax
mov ecx, eax
xor eax, eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], eax
mov word [ecx + 8], bx
mov ebx, ecx
mov esi, dword [esp + 0x24]
push dword [ebp + 0xc]
call fcn.100a2170
add esp, 4
test eax, eax
je 0x101101cb
lock inc dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x10], ecx
test esi, esi
je 0x10110201
push esi
call fcn.1008ce70
add esp, 4
jmp 0x1011020f
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101104a6
mov dword [esp + 0xc], 0
jmp 0x10110480
xor eax, eax
inc eax
push eax
push eax
push ecx
call sym.nss3.dll_CERT_CertChainFromCert
add esp, 0xc
mov dword [ebx + 0x14], eax
test eax, eax
mov dword [esp + 0xc], ebx
je 0x10110480
mov ecx, ebx
mov edx, dword [esp + 0x18]
call fcn.10110960
test eax, eax
jne 0x1011045c
mov esi, dword [esp + 0x28]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10110247
push 1
push eax
call fcn.100e2310
add esp, 8
test esi, esi
je 0x10110264
push esi
push 0
call sym.nss3.dll_SECITEM_DupArray
add esp, 8
mov dword [ebx + 0x20], eax
test eax, eax
mov eax, ebx
jne 0x1011026d
jmp 0x10110480
mov dword [ebx + 0x20], 0
mov eax, ebx
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
lea ebx, [ecx + 0x24]
cmp dword [eax + 0x2c], 0
je 0x10110289
push 0
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test esi, esi
je 0x101102a7
cmp dword [esi + 8], 0
je 0x101102a7
push esi
push ebx
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x10110480
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x44], 0
mov esi, dword [esp + 0x14]
add esi, 0x30
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x38], 0
je 0x101102d7
push 0
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x101102f6
push eax
call fcn.1011c270
add esp, 4
mov dword [esi + 0x3c], 0
mov esi, ebx
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x1011038e
test ebx, ebx
je 0x1011038e
mov eax, dword [ebx + 4]
test eax, eax
je 0x10110441
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10110441
lea edx, [esp + 0x44]
push edx
push ecx
push eax
call fcn.1012d340
add esp, 0xc
test eax, eax
jne 0x10110450
push ebx
push dword [esp + 0x18]
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x10110450
push esi
call sym.nss3.dll_SECKEY_CopyPrivateKey
add esp, 4
test eax, eax
je 0x10110450
mov ebx, eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x14]
call fcn.10094ac0
test eax, eax
je 0x10110450
push eax
push ebx
call fcn.1011c1e0
add esp, 8
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x3c], eax
mov eax, dword [esp + 0x44]
jmp 0x101103a0
test esi, esi
jne 0x10110441
xor eax, eax
test ebx, ebx
jne 0x10110441
push eax
call fcn.1012d4e0
add esp, 4
mov esi, edi
add esi, 0x208
mov ebx, dword [edi + 0x208]
cmp ebx, esi
je 0x10110414
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
movzx eax, word [eax + 8]
mov dword [esp + 0x10], eax
not eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
mov eax, ebx
mov ebx, dword [ebx]
mov ecx, dword [eax + 8]
test word [esp + 0x10], cx
je 0x10110410
test edx, edx
je 0x101103eb
cmp dword [eax + 0xc], edx
jne 0x10110410
and cx, word [esp + 0x14]
mov word [eax + 8], cx
jne 0x10110410
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
push eax
call fcn.1010fef0
mov edx, dword [esp + 0x20]
add esp, 4
cmp ebx, esi
jne 0x101103d4
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
mov eax, dword [edi + 0x20c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20c]
mov dword [eax], ecx
mov dword [edi + 0x20c], ecx
push dword [esp + 0x18]
call fcn.1011c270
add esp, 4
xor esi, esi
jmp 0x101104a9
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [esp + 0x44]
call fcn.1012d4e0
add esp, 4
cmp dword [0x101de200], 0
je 0x101104e9
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101104d1
mov eax, dword [eax + 0x28]
mov dword [esp + 0x10], eax
push dword [esp + 0xc]
call fcn.1010fef0
add esp, 4
push 0
push dword [esp + 0x14]
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [esp + 0x18]
call fcn.1011c270
add esp, 4
xor esi, esi
dec esi
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 0xc9
je 0x10110119
xor eax, eax
inc eax
jmp 0x10110149
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10110479
call fcn.100745e0
jmp 0x10110469