Function at 0x1013b1f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101d5b48], 0
je 0x1013b284
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x20]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1013b467
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 edi, [ebp - 0x14]
xor esi, esi
push edi
push esi
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x1013b298
push eax
call fcn.10115520
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
xor edi, edi
dec edi
test esi, esi
je 0x1013b2af
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1013b2af
push 0
push 0xffffe09a
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x1013b2af
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x2c]
cmp eax, ecx
jne 0x1013b2c3
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, ecx
jae 0x1013b2d0
xor esi, esi
mov eax, 0xffffe097
jmp 0x1013b25b
shl eax, 2
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x1013b414
mov ecx, dword [ebx + 0x1c]
mov esi, eax
mov ecx, dword [ecx + 0x12]
call dword [section..00cfg]
push edi
push esi
push 0
call ecx
add esp, 0xc
test eax, eax
jne 0x1013b252
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 0x1013b271
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
xor edi, edi
inc edi
test eax, eax
cmovne edi, eax
push edi
push dword [ebx]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov ebx, eax
test eax, eax
je 0x1013b34e
push edi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ebx
je 0x1013b3a9
xor ebx, ebx
push dword [esi + ebx*4]
push dword [ebp + 8]
call fcn.1013aa60
add esp, 8
mov edi, eax
test eax, eax
jne 0x1013b39d
mov eax, dword [ebp + 8]
push eax
call fcn.10135c60
add esp, 4
test eax, eax
je 0x1013b41b
mov edi, eax
push eax
push dword [esi + ebx*4]
push dword [ebp + 8]
call fcn.101384e0
add esp, 0xc
push edi
push 0
call fcn.10105820
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [eax + ebx*4], edi
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x1013b359
push 0
call fcn.10105880
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [0x101d5b48]
call fcn.1013e140
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x2c], eax
push dword [0x101d5b48]
call fcn.1013e210
add esp, 4
xor edi, edi
test ebx, ebx
je 0x1013b2af
mov eax, dword [esi]
lock dec dword [eax + 0x48]
jne 0x1013b409
push eax
call fcn.10135de0
add esp, 4
add esi, 4
dec ebx
jne 0x1013b3f8
jmp 0x1013b2af
xor esi, esi
jmp 0x1013b266
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x1013b453
cmp dword [ebp - 0x14], 0
je 0x1013b453
xor esi, esi
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x1013b453
lock dec dword [eax + 0x48]
jne 0x1013b44d
push eax
call fcn.10135de0
add esp, 4
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x1013b437
mov ecx, dword [edi]
mov edx, dword [ebp - 0x1c]
push 0
call fcn.10146c70
add esp, 4
jmp 0x1013b293
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1013b228