Function at 0x1008b7c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x60], eax
xor edi, edi
dec edi
test ecx, ecx
je 0x1008bbb6
mov eax, dword [ecx + 0x17c]
test eax, eax
je 0x1008b7f9
cmp dword [eax + 0x14], 0
je 0x1008bb79
mov edi, dword [0x101dec48]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1008bbcb
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 [0x101dec48]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov esi, edi
je 0x1008b86c
cmp dword [esi + 0x17c], 0
je 0x1008b86c
push esi
call sym.nss3.dll_CERT_IsUserCert
add esp, 4
test eax, eax
je 0x1008b86c
xor edi, edi
test ebx, ebx
je 0x1008bbb6
cmp dword [ebx + 8], 0
je 0x1008bbb6
push esi
call sym.nss3.dll_CERT_GetFirstEmailAddress
add esp, 4
test eax, eax
je 0x1008bb75
mov edi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov ecx, ebx
cmove ecx, eax
test ebx, ebx
cmove ecx, ebx
cmove eax, ebx
lea edx, [esi + 0x54]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
test eax, eax
setne al
mov dword [esp + 0x14], ecx
test ecx, ecx
setne cl
and cl, al
mov byte [esp + 0xf], cl
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
push esi
call fcn.100a2170
add esp, 4
xor esi, esi
dec esi
test eax, eax
je 0x1008bb4f
mov ebx, eax
mov ecx, dword [eax + 0x1c]
test ecx, ecx
sete al
mov dword [esp], eax
mov dword [esp + 0x18], ecx
je 0x1008b9b9
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1008b931
push ebx
push eax
call fcn.100a52f0
add esp, 8
test eax, eax
je 0x1008b931
mov edx, eax
mov eax, dword [eax + 0x34]
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 8], edx
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x34], eax
lea edx, [esp + 0x44]
jmp 0x1008b9de
mov dword [esp], 0
xor eax, eax
xor edx, edx
xor esi, esi
dec esi
cmp byte [esp + 0xf], 0
je 0x1008ba0e
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.100a06b0
add esp, 0xc
mov dword [esp + 8], eax
test eax, eax
je 0x1008ba3e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
xor esi, esi
dec esi
test eax, eax
je 0x1008ba3e
push dword [esp + 8]
push eax
call fcn.100a51f0
add esp, 8
neg eax
sbb esi, esi
jmp 0x1008ba3e
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
push edi
lea eax, [esp + 0x3c]
push eax
call fcn.100c2cf0
add esp, 0x10
mov edx, eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x34]
xor ecx, ecx
dec ecx
mov esi, ecx
cmp dword [esp + 0x10], 0
je 0x1008ba66
mov esi, ecx
test eax, eax
je 0x1008ba66
mov dword [esp + 4], edx
cmp dword [eax + 8], 0
je 0x1008ba17
push eax
lea eax, [esp + 0x5c]
push eax
call sym.nss3.dll_DER_UTCTimeToTime_Util
add esp, 8
test eax, eax
jne 0x1008ba3c
jmp 0x1008ba27
mov dword [esp + 8], eax
jmp 0x1008baf6
mov dword [esp + 0x5c], getsockname
mov dword [esp + 0x58], 0
push dword [esp + 0x10]
lea eax, [esp + 0x54]
push eax
call sym.nss3.dll_DER_UTCTimeToTime_Util
add esp, 8
test eax, eax
je 0x1008ba4a
mov esi, eax
mov ebx, dword [esp]
mov edx, dword [esp + 4]
jmp 0x1008baf9
mov eax, dword [esp + 0x58]
xor esi, esi
cmp eax, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
sbb eax, dword [esp + 0x54]
mov edx, dword [esp + 4]
jge 0x1008baf6
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1008bad7
cmp dword [esp + 0x14], 0
je 0x1008bb6c
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 8]
je 0x1008b93f
test eax, eax
je 0x1008b93f
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov ebx, eax
mov eax, dword [esp + 0x10]
push dword [eax + 4]
push dword [eax + 8]
xor eax, eax
push eax
push ecx
mov dword [esp + 0x14], edx
call fcn.1009b0b0
add esp, 0x10
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax + 8]
xor eax, eax
push eax
push dword [esp + 0x24]
call fcn.1009b0b0
mov edx, dword [esp + 0x14]
add esp, 0x10
mov dword [ebx + 0x34], eax
jmp 0x1008baf6
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push dword [esp + 0x40]
mov esi, edx
call fcn.100c2f10
mov edx, esi
add esp, 0x14
mov esi, eax
mov ebx, dword [esp]
test edx, edx
je 0x1008bb0c
test bl, bl
je 0x1008bb0c
push 1
push edx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
sete cl
xor bl, 1
or bl, cl
jne 0x1008bb27
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [esp + 8]
test eax, eax
je 0x1008bb38
push eax
call fcn.100a2e70
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1008bb4f
lock dec dword [eax + 0x48]
jne 0x1008bb4f
push eax
call fcn.100d1c70
add esp, 4
test esi, esi
jne 0x1008bbb3
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 0x1008b8b0
jmp 0x1008bb75
mov eax, dword [esp + 8]
jmp 0x1008b93f
xor edi, edi
jmp 0x1008bbb6
call sym.nss3.dll_PK11_GetInternalKeySlot
test eax, eax
je 0x1008bbb6
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
mov edi, eax
lock dec dword [esi + 0x48]
jne 0x1008bba8
push esi
call fcn.100d1c70
add esp, 4
test edi, edi
mov edi, ebx
jne 0x1008bbb6
jmp 0x1008b7f9
xor edi, edi
dec edi
mov ecx, dword [esp + 0x60]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
lea esp, [ebp - 0xc]
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
mov esi, eax
jmp 0x1008b815