Function at 0x100d03f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0
je 0x100d0416
cmp dword [ebx + 0xc], 0
je 0x100d0416
mov dword [ebp - 0x10], 0x7f
mov esi, 0x65
jmp 0x100d0422
mov dword [ebp - 0x10], 0x64
mov esi, 4
push dword [ebx + 0x38]
call fcn.100cf110
add esp, 4
test eax, eax
je 0x100d04e5
mov edi, eax
mov eax, dword [0x101f33ac]
test eax, eax
je 0x100d05f2
push eax
call fcn.100d3060
add esp, 4
mov eax, dword [edi + 0x2c]
test eax, eax
jle 0x100d04bb
mov ecx, dword [edi + 0x28]
xor edx, edx
mov ebx, dword [ecx + edx*4]
cmp dword [ebx + 0x40], esi
je 0x100d0468
inc edx
cmp eax, edx
jne 0x100d0459
jmp 0x100d04bb
lock inc dword [ebx + 0x48]
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
push edi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov ecx, ebx
xor edx, edx
inc edx
call fcn.100cbe80
mov edi, eax
lock dec dword [ebx + 0x48]
jne 0x100d049e
push ebx
call fcn.100c9d60
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x100d04e5
inc esi
cmp esi, dword [ebp - 0x10]
jne 0x100d0422
push 0
push 0xffffe043
jmp 0x100d0604
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
mov eax, 0xffffe043
mov ebx, dword [ebp + 8]
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push edi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
xor eax, eax
cmp dword [ebx + 0x2c], 0
je 0x100d060e
mov ecx, dword [ebx + 0x28]
mov edi, dword [ecx]
lock inc dword [edi + 0x48]
test edi, edi
je 0x100d060e
lea eax, [edi + 0x48]
mov dword [ebp - 0x10], eax
push 0x5d
push 0x3e
push dword [ebp + 0xc]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x100d05c5
mov ebx, eax
push eax
push esi
push str.tokens_0x_x__s__
call sym.nss3.dll_PR_smprintf
add esp, 0xc
mov dword [ebp - 0x14], eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100d05d8
mov ebx, ecx
mov ecx, edi
mov edx, 0xce534355
push ebx
call fcn.100d06c0
add esp, 4
mov dword [ebp - 0x18], eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
jne 0x100d0578
push edi
call fcn.100c9d60
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x100d060c
mov eax, dword [0x101f33ac]
test eax, eax
je 0x100d05fc
push eax
call fcn.100d3060
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2c]
test eax, eax
jle 0x100d05b0
mov ecx, dword [ecx + 0x28]
xor edx, edx
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0x40], esi
je 0x100d0616
inc edx
cmp eax, edx
jne 0x100d05a3
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
mov eax, 0xffffe043
jmp 0x100d0601
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
jne 0x100d060c
push edi
call fcn.100c9d60
add esp, 4
jmp 0x100d060c
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
jne 0x100d05e9
push edi
call fcn.100c9d60
add esp, 4
push 0
push 0xffffe013
jmp 0x100d0604
mov eax, 0xffffe09a
jmp 0x100d04d1
mov eax, 0xffffe09a
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
lock inc dword [edi + 0x48]
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
push edi
call fcn.100cbb00
add esp, 4
test eax, eax
je 0x100d0688
mov esi, eax
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x100d067f
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x10], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100d0699
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
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.10095540
add esp, 4
xor edx, edx
inc edx
mov ecx, edi
call fcn.100cbe80
mov eax, edi
jmp 0x100d060e
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x100d0657