Function at 0x100d12d0
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 [0x101f53dc], 0
je 0x100d1438
mov esi, ecx
mov ebx, dword [ecx + 0x20]
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100d1555
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 0x100d1449
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 [0x101f53dc]
mov dword [esp], eax
call fcn.100d4620
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x100d13a8
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 0x100d13a1
movzx esi, word [ebx + 0x80]
mov ecx, ebx
xor edx, edx
inc edx
call fcn.100cd440
cmp word [ebx + 0x82], si
jne 0x100d1472
cmp dword [ebx + 0x84], eax
jne 0x100d1472
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x2c]
xor edx, edx
inc edx
inc edi
cmp edi, eax
jl 0x100d1362
jmp 0x100d13ab
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [0x101f53dc]
mov dword [esp], eax
call fcn.100d4700
cmp dword [esi + 0x2c], 0
setne cl
cmp dword [ebp - 0x10], 0
sete al
and al, cl
test byte [ebp - 0x14], 1
jne 0x100d14e5
test al, al
jne 0x100d14e5
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Sleep
mov edi, dword [esi + 0x20]
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100d1424
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x68]
test al, 2
jne 0x100d1336
jmp 0x100d152f
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov ebx, eax
jmp 0x100d1402
mov dword [esp + 4], 0
mov dword [esp], 0xffffe09a
jmp 0x100d1469
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 0x100d14db
mov dword [ebx + 0x84], eax
mov word [ebx + 0x82], si
mov eax, dword [0x101f53dc]
mov dword [esp], eax
call fcn.100d4700
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100d156c
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
test al, al
mov eax, 0xffffe043
mov ebx, 0xffffe098
cmovne ebx, eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100d1583
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x68]
jmp 0x100d1534
mov ebx, 0xffffe098
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], ebx
mov dword [esp + 4], 0
jmp 0x100d1469
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov edi, eax
jmp 0x100d1309
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov edi, eax
jmp 0x100d14b0
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov dword [ebp - 0x10], eax
jmp 0x100d1512