Function at 0x100d7b60
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 [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x101dee70], 0
je 0x100d7b96
mov ecx, esi
push dword [ebp + 0x10]
call fcn.100d7890
add esp, 4
mov edi, eax
jmp 0x100d7c88
cmp byte [esi + 0x6c], 2
jne 0x100d7ba2
cmp byte [esi + 0x6d], 0
je 0x100d7b82
mov edi, dword [esi + 0x20]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100d7d2e
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 0x100d7c66
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 [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100d7d4b
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 0x100d7c66
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100d7c9c
cmp eax, 0x190
je 0x100d7c77
cmp eax, 0x54
jne 0x100d7d1d
mov ecx, esi
mov edx, dword [ebp + 0xc]
jmp 0x100d7b84
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.1014dc80
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x14]
push esi
call fcn.100d6e20
add esp, 8
mov edi, eax
test eax, eax
jne 0x100d7cc9
push esi
call sym.nss3.dll_SECMOD_UpdateSlotList
add esp, 4
push dword [ebp - 0x14]
push esi
call fcn.100d6e20
add esp, 8
mov edi, eax
test eax, eax
je 0x100d7c86
mov eax, dword [edi + 0x13c]
test eax, eax
je 0x100d7c88
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x100d7c88
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x1c], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100d7d68
mov esi, dword [ebp - 0x1c]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov dword [ebx + 0x3c], 0
push dword [ebx + 0x4c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100d7c88
push eax
call fcn.100b1140
add esp, 4
push 0
push eax
jmp 0x100d7c7e
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x100d7bbb
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x100d7c1d
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x100d7cf3