Function at 0x100f4080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, edx
mov edi, ecx
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ecx + 8]
push dword [ecx + 0xc]
call fcn.100f7770
add esp, 8
test eax, eax
je 0x100f4102
mov ebx, eax
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
xor esi, esi
test eax, eax
je 0x100f4169
cmp dword [eax], 0
je 0x100f4169
mov dword [ebp - 0x14], 0
push dword [ebp + 0xc]
push ecx
push dword [eax]
call fcn.100f2040
mov edx, dword [ebp + 8]
add esp, 0xc
mov esi, eax
or eax, edx
je 0x100f410e
test esi, esi
je 0x100f4115
push esi
call sym.nss3.dll_PORT_Alloc_Util
mov edx, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x100f4117
xor esi, esi
mov eax, 0xffffe013
jmp 0x100f415b
mov dword [edi + 0x18], 0xffffe001
jmp 0x100f4239
xor esi, esi
jmp 0x100f422b
xor eax, eax
mov ecx, dword [ebx + 0x3c]
push dword [ebp + 0xc]
push edx
push dword [ebp - 0x18]
push esi
lea edx, [ebp - 0x14]
push edx
mov esi, eax
push eax
push dword [ecx]
call fcn.100f20b0
add esp, 0x1c
test eax, eax
je 0x100f4163
cmp dword [0x101de200], 0
je 0x100f426f
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100f4254
mov eax, dword [eax + 0x28]
mov dword [edi + 0x18], eax
jmp 0x100f422b
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0x100f422b
mov eax, dword [ebx + 0x3c]
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x100f418f
mov eax, dword [eax + 4]
test eax, eax
je 0x100f418f
push ecx
push dword [ebp - 0x18]
push eax
call fcn.100f4580
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x100f41b0
mov esi, dword [edi + 0x20]
call dword [section..00cfg]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push esi
call ecx
add esp, 0xc
jmp 0x100f4228
push ebx
call sym.nss3.dll_NSS_CMSContentInfo_GetContentTypeTag
add esp, 4
cmp eax, 0x19
jne 0x100f4228
mov esi, dword [ebx + 0xc]
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x20]
lea edx, [ecx + eax]
cmp edx, dword [esi + 0xc]
jbe 0x100f4211
mov dword [ebp - 0x28], ecx
add edx, edx
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], edx
push edx
push dword [eax + 0x44]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x100f424b
mov ebx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x100f4200
push eax
push dword [esi + 4]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
jmp 0x100f4214
mov ebx, dword [esi + 4]
add ebx, ecx
push eax
push dword [ebp - 0x18]
push ebx
mov edi, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 8], edi
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x100f4239
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi + 0x18], 0xffffe013
jmp 0x100f4228
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100f4158
call fcn.100745e0
jmp 0x100f4144