Function at 0x100d7890
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], edx
cmp dword [0x101df008], 0
je 0x100d79ef
mov esi, ecx
mov ebx, dword [ecx + 0x20]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100d7b1e
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
mov eax, dword [esi + 0x68]
test al, 1
jne 0x100d7a00
or eax, 2
mov dword [esi + 0x68], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [esp], esi
call sym.nss3.dll_SECMOD_UpdateSlotList
mov eax, dword [0x101df008]
mov dword [esp], eax
call fcn.100da9f0
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x100d7968
xor edi, edi
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi + 0x28]
mov ebx, dword [ecx + edi*4]
cmp dword [ebx + 0xc], 0
jne 0x100d7961
movzx esi, word [ebx + 0x80]
mov ecx, ebx
xor edx, edx
inc edx
call fcn.100d4740
cmp word [ebx + 0x82], si
jne 0x100d7a29
cmp dword [ebx + 0x84], eax
jne 0x100d7a29
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x2c]
xor edx, edx
inc edx
inc edi
cmp edi, eax
jl 0x100d7922
jmp 0x100d796b
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [0x101df008]
mov dword [esp], eax
call fcn.100daad0
cmp dword [ebp - 0x10], 0
jne 0x100d798b
cmp dword [esi + 0x2c], 0
jne 0x100d7a9c
test byte [ebp - 0x14], 1
jne 0x100d7abc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Sleep
mov edi, dword [esi + 0x20]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100d79db
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [edi + 8], ebx
test byte [esi + 0x68], 2
jne 0x100d78f6
jmp 0x100d7afa
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov ebx, eax
jmp 0x100d79ba
mov dword [esp + 4], 0
mov dword [esp], 0xffffe09a
jmp 0x100d7a20
and eax, 0xfffffffe
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [esp + 4], 0
mov dword [esp], 0xffffe098
call sym.nss3.dll_PR_SetError
xor ebx, ebx
jmp 0x100d7a92
mov dword [ebx + 0x84], eax
mov word [ebx + 0x82], si
mov eax, dword [0x101df008]
mov dword [esp], eax
call fcn.100daad0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100d7b35
mov esi, dword [ebp - 0x10]
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [esi + 8], edi
mov eax, dword [ebp - 0x18]
and byte [eax + 0x68], 0xfe
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
lock inc dword [ebx + 0x48]
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x14], 0xffffe043
jmp 0x100d7ada
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x14], 0xffffe098
test eax, eax
je 0x100d7b4c
mov edi, eax
mov ebx, dword [ebp - 0x10]
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
mov edi, dword [ebp - 0x14]
jmp 0x100d7aff
mov edi, 0xffffe098
and byte [esi + 0x68], 0xfe
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [esp], edi
mov dword [esp + 4], 0
jmp 0x100d7a20
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edi, eax
jmp 0x100d78c9
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edi, eax
jmp 0x100d7a67
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x100d7ade