Function at 0x100f1070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x101d2014]
mov ecx, dword [ebp + 8]
xor eax, ebp
xor edi, edi
dec edi
test ecx, ecx
mov dword [esp + 0x68], eax
je 0x100f1494
mov eax, dword [ecx + 0x17c]
test eax, eax
je 0x100f10a9
cmp dword [eax + 0x14], 0
je 0x100f1457
mov edi, dword [0x101d5788]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100f14a9
mov ebx, dword [ebp + 0xc]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14c]
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov esi, edi
je 0x100f111c
cmp dword [esi + 0x17c], 0
je 0x100f111c
push esi
call sym.nss3.dll_CERT_IsUserCert
add esp, 4
test eax, eax
je 0x100f111c
xor edi, edi
test ebx, ebx
je 0x100f1494
cmp dword [ebx + 8], 0
je 0x100f1494
push esi
call sym.nss3.dll_CERT_GetFirstEmailAddress
add esp, 4
test eax, eax
je 0x100f1453
mov edi, eax
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x54]
mov dword [esp + 0x24], ecx
mov ecx, ebx
test eax, eax
cmove ecx, eax
test ebx, ebx
cmove eax, ebx
cmove ecx, ebx
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
setne al
test ecx, ecx
setne cl
and cl, al
mov byte [esp + 0x17], cl
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
push esi
call fcn.10106d10
add esp, 4
test eax, eax
mov esi, 0xffffffff
je 0x100f1438
mov esi, dword [eax + 0x1c]
mov ebx, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x100f1275
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100f11e1
push ebx
push eax
call fcn.10109cf0
add esp, 8
test eax, eax
je 0x100f11e1
mov edx, dword [eax + 0x34]
mov dword [esp + 0xc], eax
mov ecx, dword [edx]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + 4]
xor edx, edx
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + 8], ecx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], eax
jmp 0x100f129e
xor edx, edx
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
dec esi
mov dword [esp + 4], esi
cmp byte [esp + 0x17], 0
je 0x100f13d2
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.10105270
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x100f126c
mov eax, dword [esp + 0x20]
mov esi, 0xffffffff
mov dword [esp + 4], esi
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100f126c
push ebx
push eax
call fcn.10109c10
add esp, 8
neg eax
sbb eax, eax
mov dword [esp + 4], eax
mov edx, dword [esp + 0x10]
jmp 0x100f13d6
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
push edi
lea eax, [esp + 0x44]
push eax
call fcn.10126fd0
add esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dl, 1
mov dword [esp + 0xc], 0
cmp dword [esp + 0x18], 0
mov esi, 0xffffffff
mov ecx, esi
je 0x100f1326
test eax, eax
mov ecx, esi
je 0x100f1326
cmp dword [eax + 8], 0
mov dword [esp + 0x10], edx
je 0x100f12d4
push eax
lea eax, [esp + 0x64]
push eax
call sym.nss3.dll_DER_UTCTimeToTime_Util
add esp, 8
mov esi, dword [esp + 8]
test eax, eax
jne 0x100f12fd
jmp 0x100f12e8
mov esi, dword [esp + 8]
mov dword [esp + 0x64], getsockname
mov dword [esp + 0x60], 0
push dword [esp + 0x18]
lea eax, [esp + 0x5c]
push eax
call sym.nss3.dll_DER_UTCTimeToTime_Util
add esp, 8
test eax, eax
je 0x100f130a
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
jmp 0x100f13c4
mov eax, dword [esp + 0x60]
xor ecx, ecx
mov edx, dword [esp + 0x64]
cmp eax, dword [esp + 0x58]
sbb edx, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
jge 0x100f13ca
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ecx
test eax, eax
je 0x100f139f
cmp dword [esp + 0x1c], 0
mov esi, dword [esp + 8]
je 0x100f11fa
cmp dword [esp + 0x18], 0
je 0x100f11fa
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100f11fa
mov ebx, dword [ecx]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
push dword [eax + 4]
push dword [eax + 8]
xor eax, eax
push eax
push ebx
mov dword [esp + 0x20], edx
mov ebx, ecx
call fcn.100ffe70
add esp, 0x10
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push dword [eax + 8]
xor eax, eax
push eax
push dword [esp + 0x2c]
call fcn.100ffe70
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [ebx + 0x34], eax
jmp 0x100f13da
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push edi
push dword [esp + 0x48]
mov esi, edx
call fcn.10127230
mov edx, esi
mov esi, dword [esp + 0x1c]
add esp, 0x14
mov ebx, dword [esp + 0xc]
mov dword [esp + 4], eax
jmp 0x100f13da
mov dword [esp + 4], 0
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 8]
test esi, esi
je 0x100f13f5
test dl, dl
je 0x100f13f5
push 1
push esi
mov esi, edi
mov edi, edx
call sym.nss3.dll_SECITEM_FreeItem_Util
mov edx, edi
mov edi, esi
add esp, 8
mov eax, dword [esp + 0x3c]
test eax, eax
sete cl
xor dl, 1
or dl, cl
jne 0x100f1410
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test ebx, ebx
je 0x100f141d
push ebx
call fcn.101079e0
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100f1434
lock dec dword [eax + 0x48]
jne 0x100f1434
push eax
call fcn.10135de0
add esp, 4
mov esi, dword [esp + 4]
test esi, esi
jne 0x100f1491
push edi
mov esi, dword [ebp + 8]
push esi
call sym.nss3.dll_CERT_GetNextEmailAddress
add esp, 8
mov edi, eax
test eax, eax
jne 0x100f1160
xor edi, edi
jmp 0x100f1494
call sym.nss3.dll_PK11_GetInternalKeySlot
test eax, eax
je 0x100f1494
mov esi, eax
mov ebx, edi
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
push esi
call sym.nss3.dll_PK11_ImportCert
add esp, 0x14
lock dec dword [esi + 0x48]
mov edi, eax
jne 0x100f1486
push esi
call fcn.10135de0
add esp, 4
test edi, edi
mov edi, ebx
jne 0x100f1494
jmp 0x100f10a9
xor edi, edi
dec edi
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100f10c5