Function at 0x100e5900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp dword [ecx + 0x20], 0
jne 0x100e5b09
mov esi, ecx
cmp dword [ecx + 0x24], 0
jne 0x100e5b09
cmp dword [esi + 0x34], 0
jne 0x100e5b09
mov edi, edx
mov ebx, dword [esi + 0xc]
add ebx, 0xc
mov ecx, esi
call fcn.100e3770
xor edx, edx
mov ecx, 0
test eax, eax
je 0x100e5952
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], eax
push edx
push edx
mov dword [ebp - 0x24], ebx
push ebx
call fcn.1007bc60
add esp, 0xc
test eax, eax
je 0x100e59b8
mov ebx, eax
push 0
push eax
call sym.nss3.dll_CERT_IsCACert
add esp, 8
mov dword [ebp - 0x1c], eax
push ebx
call sym.nss3.dll_CERT_DestroyCertificate
add esp, 4
xor edx, edx
cmp dword [ebp - 0x1c], 0
je 0x100e59bf
push edx
push edx
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.1007bc60
add esp, 0xc
test eax, eax
je 0x100e59c4
cmp dword [eax + 0x170], 0
sete cl
mov dword [ebp - 0x1c], ecx
push eax
call sym.nss3.dll_CERT_DestroyCertificate
mov edx, dword [ebp - 0x1c]
add esp, 4
jmp 0x100e59c6
mov ebx, dword [ebp - 0x24]
xor edx, edx
jmp 0x100e59c6
mov ebx, dword [ebp - 0x24]
jmp 0x100e59c6
mov dl, 1
test edi, edi
je 0x100e59f7
xor eax, eax
push eax
push eax
push eax
push ebx
push dword [0x101f5014]
call sym.nss3.dll_CERT_NewTempCertificate
add esp, 0x14
test eax, eax
je 0x100e5a53
mov edi, eax
push dword [ebp + 8]
push 1
push dword [ebp - 0x20]
push eax
push dword [esi + 0x40]
call fcn.100a8180
jmp 0x100e5a43
mov ecx, dword [esi + 0x4c]
cmp ecx, 1
setne al
test ecx, ecx
je 0x100e5a98
or al, dl
je 0x100e5a98
mov ecx, ebx
mov ebx, dword [esi + 0x40]
xor eax, eax
push 1
push eax
push eax
push ecx
push dword [0x101f5014]
call sym.nss3.dll_CERT_NewTempCertificate
add esp, 0x14
test eax, eax
je 0x100e5b1d
mov edi, eax
sub esp, 4
push dword [ebp - 0x20]
push 0
push eax
push ebx
call sym.nss3.dll_PK11_ImportCert
add esp, 0x14
mov ebx, eax
push edi
call sym.nss3.dll_CERT_DestroyCertificate
add esp, 4
jmp 0x100e5abf
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100e5a65
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
cmp dword [0x101f4f80], 0
je 0x100e5b5f
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e5b3a
mov eax, dword [eax + 0x28]
mov dword [esi + 0x38], eax
mov dword [esi + 0x20], 1
xor ebx, ebx
dec ebx
jmp 0x100e5b09
lea eax, [ebp - 0x18]
mov dword [eax], ebx
xor ecx, ecx
mov dword [eax + 4], ecx
xor edx, edx
inc edx
push dword [ebp - 0x20]
push ecx
push edx
push ecx
push eax
push edx
push 7
push dword [0x101f5014]
call sym.nss3.dll_CERT_ImportCerts
add esp, 0x20
mov ebx, eax
test ebx, ebx
mov eax, dword [ebp - 0x28]
je 0x100e5af1
mov dword [esi + 0x20], 1
cmp dword [0x101f4f80], 0
je 0x100e5b55
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e5b22
mov eax, dword [eax + 0x28]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x28]
jmp 0x100e5af3
xor ebx, ebx
mov dword [esi + 0x34], 1
test eax, eax
je 0x100e5b09
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
dec ebx
jmp 0x100e5ac6
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100e5ae6
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100e5a86
call fcn.1001b2e0
jmp 0x100e5ad6
call fcn.1001b2e0
jmp 0x100e5a72