Function at 0x1008a850
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
call fcn.100a2170
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1008ab47
mov esi, eax
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x1008a8f8
mov dword [ebp - 0x18], eax
push 0
push esi
call fcn.100a3200
add esp, 8
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1008a8c4
test ebx, ebx
je 0x1008a8c4
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x1008a90e
mov dword [edi + 0x154], 0
push ebx
call fcn.1009a580
add esp, 4
xor ebx, ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1008a90e
test ebx, ebx
jne 0x1008a90e
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
inc edi
push edi
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x1008a90c
mov ebx, eax
push edi
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x1008a90e
push 0
push 0xffffe018
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1008ab4c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1008ab63
mov ebx, dword [ebp - 0x1c]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
push esi
mov edi, dword [ebp - 0x18]
push dword [edi + 0x14]
call fcn.100a4710
add esp, 8
mov eax, dword [edi + 0x14]
push dword [eax + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x28], 0
je 0x1008aac9
call sym.nss3.dll_PK11_GetInternalKeySlot
mov dword [ebp - 0x1c], eax
lea ebx, [esi + 0x48]
lea eax, [esi + 0x40]
mov dword [ebp - 0x18], eax
lea edx, [esi + 0x38]
mov edi, esi
add edi, 0x28
lea eax, [esi + 0x30]
xor ecx, ecx
inc ecx
push ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x118]
push ebx
push dword [ebp - 0x18]
push edx
push eax
mov ebx, dword [ebp - 0x20]
push ebx
push edi
xor eax, eax
inc eax
push eax
push 0
mov edi, dword [ebp - 0x1c]
push dword [edi + 0x13c]
call fcn.1009d3e0
add esp, 0x2c
mov dword [ebp - 0x18], eax
push ebx
call fcn.1009a580
add esp, 4
lock dec dword [edi + 0x48]
jne 0x1008a9d7
push edi
call fcn.100d1c70
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1008ab20
push eax
push esi
call fcn.100a2d30
add esp, 8
lea eax, [ebp - 0x14]
push 1
push eax
push dword [0x101decc8]
call fcn.100a5d20
add esp, 0xc
mov edi, dword [0x101dec48]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1008ab80
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0x15c], 0
push dword [0x101dec48]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov esi, dword [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.100a1930
test eax, eax
je 0x1008ab3e
mov edi, eax
mov ebx, dword [0x101dec48]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1008ab9d
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov dword [edi + 0x150], 0
mov dword [edi + 0x14c], 1
push dword [0x101dec48]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor esi, esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1008ab4f
push eax
push edi
call fcn.100a2470
add esp, 8
test eax, eax
jne 0x1008ab47
jmp 0x1008ab4f
push dword [ebp + 8]
call fcn.100ac8b0
add esp, 4
test eax, eax
je 0x1008a971
mov edi, eax
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov ebx, eax
push 1
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test ebx, ebx
je 0x1008a971
lea eax, [esi + 0x28]
push dword [ebx + 4]
push dword [ebx + 8]
push eax
push dword [esi]
call fcn.1009b0b0
add esp, 0x10
push 1
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x1008a971
call fcn.1009ab60
xor esi, esi
dec esi
cmp eax, 0x23
jne 0x1008ab4f
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1008ab4f
push esi
call fcn.1009fed0
add esp, 4
call fcn.1008a6f0
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x14
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 edi, eax
jmp 0x1008a933
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x1008aa1c
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x1008aa76