Function at 0x100d0fc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101f53dc], 0
je 0x100d1043
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x20]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d12a4
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x12]
call dword [section..00cfg]
lea esi, [ebp - 0x14]
xor eax, eax
push esi
push eax
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x100d1069
push eax
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100d1052
push 0
push 0xffffe09a
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebx + 0x2c]
jne 0x100d1080
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor esi, esi
jmp 0x100d1055
mov eax, 0xffffe097
jb 0x100d102b
shl ecx, 2
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100d1036
mov edi, eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x12]
call dword [section..00cfg]
push esi
push edi
push 0
call ecx
add esp, 0xc
test eax, eax
je 0x100d10dd
push eax
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
push edi
call dword [sym.imp.mozglue.dll_free]
jmp 0x100d103e
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebx]
call sym.nss3.dll_PORT_ArenaMark_Util
add esp, 4
test eax, eax
je 0x100d10d1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x14]
shl eax, 2
xor esi, esi
inc esi
test eax, eax
cmovne esi, eax
push esi
push dword [ebx]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov edi, eax
test eax, eax
je 0x100d1127
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x100d11eb
xor esi, esi
mov dword [ebp - 0x1c], edi
mov eax, dword [0x101f53dc]
test eax, eax
je 0x100d1184
mov edi, ebx
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ecx + esi*4]
push eax
call fcn.100d4620
add esp, 4
mov eax, dword [edi + 0x2c]
test eax, eax
jle 0x100d116c
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x28]
xor edx, edx
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0x40], ebx
je 0x100d11c4
inc edx
cmp eax, edx
jne 0x100d115f
push dword [0x101f53dc]
call fcn.100d4700
add esp, 4
mov eax, 0xffffe043
mov ebx, dword [ebp + 8]
jmp 0x100d1189
mov eax, 0xffffe09a
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push ebx
call fcn.100cb190
add esp, 4
test eax, eax
je 0x100d125c
mov edi, eax
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + esi*4]
push ebx
call fcn.100cd180
add esp, 0xc
push edi
push 0
call fcn.1009aa30
add esp, 8
jmp 0x100d11d9
lock inc dword [edi + 0x48]
push dword [0x101f53dc]
call fcn.100d4700
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [eax + esi*4], edi
mov edi, eax
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x100d1136
push 0
call fcn.1009aaa0
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [0x101f53dc]
call fcn.100d4790
add esp, 4
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x18], eax
mov eax, edi
mov edi, dword [ebx + 0x2c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x2c], eax
push dword [0x101f53dc]
call fcn.100d4880
add esp, 4
test edi, edi
je 0x100d107c
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
lock dec dword [eax + 0x48]
jne 0x100d1252
push eax
call fcn.100cb320
add esp, 4
inc ebx
cmp edi, ebx
jne 0x100d123d
jmp 0x100d1055
push dword [ebp - 0x18]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x100d1293
cmp dword [ebp - 0x14], 0
je 0x100d1293
xor esi, esi
mov eax, dword [edi + esi*4]
test eax, eax
je 0x100d1293
lock dec dword [eax + 0x48]
jne 0x100d128d
push eax
call fcn.100cb320
add esp, 4
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x100d1277
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x20]
push 0
call fcn.100dd3f0
jmp 0x100d103e
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100d0ff8