Function at 0x10110650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
push dword [ebp + 8]
call fcn.10118270
add esp, 4
xor ebx, ebx
dec ebx
test eax, eax
je 0x10110930
mov esi, dword [ebp + 0xc]
test esi, esi
sete dl
cmp dword [ebp + 0x14], 0
setne cl
xor cl, dl
je 0x1011069e
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x101106b8
cmp ecx, 4
je 0x101106b2
cmp ecx, 2
jne 0x1011075e
mov di, 4
jmp 0x101106bc
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10110930
mov di, 0x70
jmp 0x101106bc
mov di, 0x82
test esi, esi
je 0x101106f9
mov dword [ebp - 0x10], eax
lea eax, [esi + 0xd8]
xor esi, esi
dec esi
push eax
call sym.nss3.dll_SECOID_GetAlgorithmTag_Util
add esp, 4
cmp eax, 0x7b
jg 0x10110776
cmp eax, 0x10
mov ecx, dword [ebp - 0x10]
je 0x101106ef
cmp eax, 0x61
jne 0x10110794
mov esi, 0xffffff7d
jmp 0x10110794
add eax, 0x208
mov esi, eax
mov esi, dword [esi]
cmp esi, eax
je 0x1011092e
cmp word [esi + 8], di
jne 0x10110700
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10110720
push eax
call sym.nss3.dll_CERT_DestroyCertificate
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10110734
push 0
push dword [eax + 8]
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
xor ebx, ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10110753
push eax
call fcn.1011c270
add esp, 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
jmp 0x10110930
xor esi, esi
mov edi, 0xffffe005
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push esi
push edi
jmp 0x101106a5
cmp eax, 0x7c
je 0x1011078c
cmp eax, 0xc8
mov ecx, dword [ebp - 0x10]
jne 0x10110794
mov esi, 0xffffff8f
jmp 0x10110794
mov esi, 0xfffffffb
mov ecx, dword [ebp - 0x10]
movzx eax, di
test esi, eax
je 0x101107a7
push 0
push 0xffffe005
jmp 0x10110902
mov edx, ecx
add edx, 0x208
mov ebx, edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov ebx, dword [ebx]
cmp ebx, edx
je 0x101107d4
cmp word [ebx + 8], di
jne 0x101107b7
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
jmp 0x10110842
mov esi, dword [edx]
cmp esi, edx
je 0x10110810
mov ebx, eax
not ebx
mov eax, esi
mov esi, dword [esi]
mov ecx, dword [eax + 8]
test cx, di
je 0x1011080c
and cx, bx
mov word [eax + 8], cx
jne 0x1011080c
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
push eax
call fcn.1010fef0
mov edx, dword [ebp - 0x14]
add esp, 4
cmp esi, edx
jne 0x101107de
push 0x40
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x101108ef
mov ebx, eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov word [ebx + 8], di
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x10]
test eax, eax
mov edi, dword [ebp + 0x14]
je 0x10110855
push eax
call sym.nss3.dll_CERT_DestroyCertificate
add esp, 4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x10110869
push 0
push dword [eax + 8]
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
push esi
call fcn.100a2170
add esp, 4
test eax, eax
je 0x1011087a
lock inc dword [eax + 4]
mov dword [ebx + 0x10], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1011088f
push eax
call fcn.1008ce70
add esp, 4
jmp 0x1011089d
xor eax, eax
inc eax
push eax
push eax
push esi
call sym.nss3.dll_CERT_CertChainFromCert
add esp, 0xc
mov dword [ebx + 0x14], eax
mov esi, 0xffffe013
test eax, eax
je 0x101108f6
mov ecx, edi
mov edx, dword [ebp + 0xc]
call fcn.10110500
test eax, eax
je 0x101108f6
mov edi, eax
mov ecx, ebx
mov edx, eax
call fcn.10110960
mov esi, eax
push edi
call fcn.1011c270
add esp, 4
test esi, esi
je 0x1011090f
cmp dword [0x101de200], 0
je 0x10110952
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1011093a
mov esi, dword [eax + 0x28]
jmp 0x101108f6
mov esi, 0xffffe013
xor ebx, ebx
push ebx
call fcn.1010fef0
add esp, 4
push 0
push esi
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x10110930
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x20c]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x20c]
mov dword [eax], ebx
mov dword [ecx + 0x20c], ebx
xor ebx, ebx
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x101108ea
call fcn.100745e0
jmp 0x101108da