Function at 0x100d15a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x101f5248], 0
je 0x100d15e2
mov ecx, esi
push dword [ebp + 0x10]
call fcn.100d12d0
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
jmp 0x100d16ea
cmp byte [esi + 0x6c], 2
jne 0x100d15ee
cmp byte [esi + 0x6d], 0
je 0x100d15c2
mov edi, dword [esi + 0x20]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100d1830
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x68]
test al, 1
jne 0x100d16bc
or eax, 4
mov dword [esi + 0x68], eax
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x10e]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp + 0xc]
call ecx
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x20]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100d184d
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ecx, dword [esi + 0x68]
mov eax, ecx
and eax, 0xfffffffb
mov dword [esi + 0x68], eax
test cl, 1
jne 0x100d16bc
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100d16f2
cmp eax, 0x190
je 0x100d16cd
cmp eax, 0x54
jne 0x100d17a4
mov ecx, esi
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.100d12d0
add esp, 4
mov edi, eax
jmp 0x100d16de
and eax, 0xfffffffe
mov dword [esi + 0x68], eax
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
push 0
push 0xffffe098
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x101f53dc]
mov edi, 0xffffe09a
mov eax, 0xffffe09a
test ecx, ecx
je 0x100d1747
mov ebx, dword [ebp - 0x14]
push ecx
call fcn.100d4620
add esp, 4
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x100d172f
mov ecx, dword [esi + 0x28]
xor edx, edx
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0x40], ebx
je 0x100d17b5
inc edx
cmp eax, edx
jne 0x100d171e
push dword [0x101f53dc]
call fcn.100d4700
add esp, 4
mov eax, 0xffffe043
mov edi, 0xffffe09a
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push esi
call sym.nss3.dll_SECMOD_UpdateSlotList
add esp, 4
mov eax, dword [0x101f53dc]
test eax, eax
je 0x100d179c
mov ebx, dword [ebp - 0x14]
push eax
call fcn.100d4620
add esp, 4
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x100d1789
mov ecx, dword [esi + 0x28]
xor edx, edx
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0x40], ebx
je 0x100d17b5
inc edx
cmp eax, edx
jne 0x100d177c
push dword [0x101f53dc]
call fcn.100d4700
add esp, 4
mov edi, 0xffffe043
push 0
push edi
jmp 0x100d16d4
push eax
call fcn.100aaef0
add esp, 4
push 0
push eax
jmp 0x100d16d4
lock inc dword [edi + 0x48]
push dword [0x101f53dc]
call fcn.100d4700
add esp, 4
push edi
call fcn.100cd0c0
add esp, 4
test eax, eax
je 0x100d16de
mov esi, eax
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x100d1822
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x18], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100d186a
mov eax, dword [ebp - 0x18]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], eax
mov dword [ebx + 0x34], 0
push dword [ebx + 0x44]
call sym.nss3.dll_PR_Unlock
add esp, 4
push esi
call fcn.10096ae0
add esp, 4
jmp 0x100d16de
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100d1607
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100d1669
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x100d17fa