Function at 0x10108fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov ecx, dword [0x101ef014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
push eax
call fcn.10111390
add esp, 4
xor esi, esi
dec esi
test eax, eax
je 0x10109405
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10109028
cmp dword [ebp + 0x10], 0
je 0x10109028
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1010903c
mov ecx, dword [ebp + 0x18]
cmp ecx, 0x19
jb 0x10109040
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10109405
xor ecx, ecx
jmp 0x10109054
lea esi, [ebp - 0x2c]
push ecx
push eax
push esi
mov ebx, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
add esp, 0xc
mov ecx, dword [esi]
xor esi, esi
cmp dword [edx + 0xdc], 0
je 0x101090a8
mov dword [ebp - 0x30], ecx
lea eax, [edx + 0xd8]
xor ebx, ebx
push eax
call sym.nss3.dll_SECOID_FindOIDTag
add esp, 4
cmp eax, 0x7b
jle 0x101090af
cmp eax, 0x7c
mov ecx, dword [ebp - 0x30]
je 0x101090de
cmp eax, 0xc8
mov edx, dword [ebp + 0xc]
je 0x101090f2
cmp eax, 0x133
jne 0x1010918f
mov ebx, dword [edx + 0x130]
add ebx, ebx
and ebx, 0x100
jmp 0x1010918f
xor ebx, ebx
jmp 0x1010918f
cmp eax, 0x10
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
je 0x101090c3
cmp eax, 0x61
jne 0x1010918f
movzx ebx, word [edx + 0x130]
mov eax, ebx
and eax, 0x80
shr ebx, 4
and ebx, 2
or ebx, eax
jmp 0x1010918f
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x130]
shr ebx, 5
and ebx, 4
jmp 0x1010918f
mov eax, dword [edx + 0x130]
mov ebx, eax
shr ebx, 3
and ebx, 0x10
test al, 0x20
je 0x1010918f
cmp dword [edx + 0x94], 0
je 0x1010917f
lea eax, [edx + 0x90]
mov cx, 5
mov dword [ebp - 0x38], ecx
push eax
call sym.nss3.dll_SECOID_FindOIDTag
add esp, 4
cmp eax, 0xc8
jle 0x10109148
lea ecx, [eax - 0x113]
cmp ecx, 6
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
jae 0x10109158
mov ax, 6
mov dword [ebp - 0x38], eax
jmp 0x10109186
lea ecx, [eax - 0x10]
cmp ecx, 5
jae 0x1010916f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
jmp 0x10109186
lea ecx, [eax - 0x133]
cmp ecx, 2
mov ecx, dword [ebp - 0x30]
jb 0x10109186
cmp eax, 0xc9
je 0x1010913f
jmp 0x1010917f
add eax, 0xffffff3e
cmp eax, 3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
jb 0x10109186
mov dword [ebp - 0x38], 0
movzx ebx, bx
mov eax, dword [ebp - 0x38]
bts ebx, eax
cmp ecx, 1
sbb esi, esi
bts esi, ecx
and si, bx
je 0x1010920b
mov ecx, dword [ebp + 0x10]
mov ebx, edx
call fcn.101094e0
test eax, eax
je 0x10109402
mov dword [ebp - 0x38], eax
push 0x40
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov ecx, eax
test eax, eax
je 0x1010921f
mov dword [ebp - 0x34], 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 dword [ebp - 0x30], ecx
mov word [ecx + 8], si
mov esi, dword [ebp - 0x28]
push ebx
call fcn.1009a930
add esp, 4
test eax, eax
je 0x101091f6
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x10], ebx
test esi, esi
je 0x10109229
push esi
call fcn.10085100
add esp, 4
jmp 0x10109237
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10109402
mov ebx, 0xffffe013
jmp 0x101093e3
xor eax, eax
inc eax
push eax
push eax
push ebx
call sym.nss3.dll_CERT_CertChainFromCert
add esp, 0xc
mov ebx, 0xffffe013
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x101093e3
mov edx, dword [ebp - 0x38]
call fcn.101098e0
test eax, eax
jne 0x101093bc
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x10109275
push 1
push eax
call fcn.100da940
mov ecx, dword [ebp - 0x30]
add esp, 8
test esi, esi
je 0x10109293
push esi
push 0
call sym.nss3.dll_SECITEM_DupArray
mov ecx, dword [ebp - 0x30]
add esp, 8
mov dword [ecx + 0x20], eax
test eax, eax
jne 0x1010929a
jmp 0x101093e3
mov dword [ecx + 0x20], 0
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
lea edx, [eax + 0x24]
cmp dword [ecx + 0x2c], 0
je 0x101092c0
push 0
push edx
mov dword [ebp - 0x3c], edx
call sym.nss3.dll_SECITEM_FreeItem_Util
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
add esp, 8
test esi, esi
je 0x101092e4
cmp dword [esi + 8], 0
je 0x101092e4
push esi
push edx
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
mov ecx, dword [ebp - 0x30]
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x34]
jne 0x101093e3
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], edx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
add eax, 0x30
cmp dword [ecx + 0x38], 0
mov esi, eax
je 0x1010930d
push 0
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
mov ecx, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x34], esi
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x1010932a
push eax
call fcn.10115430
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x3c], 0
mov esi, ebx
test ebx, ebx
mov ebx, dword [ebp - 0x3c]
je 0x1010939c
test ebx, ebx
je 0x1010939c
mov eax, dword [ebx + 4]
test eax, eax
je 0x101093a2
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x101093a2
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
call fcn.101273b0
add esp, 0xc
test eax, eax
jne 0x101093b1
push ebx
push dword [ebp - 0x34]
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x101093b1
push esi
call sym.nss3.dll_SECKEY_CopyPrivateKey
add esp, 4
test eax, eax
je 0x101093b1
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
call fcn.1008d0f0
test eax, eax
je 0x101093b1
push eax
push ebx
call fcn.101153a0
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x14]
jmp 0x10109419
xor eax, eax
or esi, ebx
je 0x10109419
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x14]
call fcn.10127550
add esp, 4
cmp dword [0x101f2f50], 0
je 0x101094cf
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101094b4
mov ebx, dword [eax + 0x28]
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10108ee0
add esp, 4
push 0
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x38]
call fcn.10115430
add esp, 4
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.10127550
add esp, 4
mov esi, edi
add esi, 0x208
mov ebx, dword [edi + 0x208]
cmp ebx, esi
je 0x10109486
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
movzx eax, word [eax + 8]
mov dword [ebp - 0x34], eax
not eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov eax, ebx
mov ebx, dword [ebx]
mov ecx, dword [eax + 8]
test word [ebp - 0x34], cx
je 0x10109482
test edx, edx
je 0x1010945f
cmp dword [eax + 0xc], edx
jne 0x10109482
and cx, word [ebp - 0x3c]
mov word [eax + 8], cx
jne 0x10109482
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.10108ee0
mov edx, dword [ebp - 0x40]
add esp, 4
cmp ebx, esi
jne 0x10109449
mov ecx, dword [ebp - 0x30]
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 [ebp - 0x38]
call fcn.10115430
add esp, 4
xor esi, esi
jmp 0x10109405
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x101093dd
call fcn.100029d0
jmp 0x101093c9