Function at 0x100da1d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100da279
cmp dword [edi + 4], 0
je 0x100da279
mov eax, dword [edi + 8]
test eax, eax
je 0x100da279
cmp eax, 0x3fffffff
ja 0x100da279
add eax, 2
mov ecx, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
shr edx, 5
mov ecx, edx
shl ecx, 4
sub eax, ecx
lea ecx, [edx + edx]
test eax, eax
lea esi, [edx + edx - 2]
cmovne esi, ecx
shl edx, 6
lea ebx, [edx + eax*4]
add ebx, esi
je 0x100da279
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x100da2b8
mov dword [esp], eax
call sym.nss3.dll_PORT_ArenaMark_Util
mov esi, eax
cmp dword [ebp + 0xc], 0
jne 0x100da2be
mov eax, ebx
or eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.nss3.dll_PORT_ArenaAlloc_Util
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x100da30f
mov dword [esp], 0
mov ecx, dword [ebp + 8]
jmp 0x100da3d5
cmp dword [0x101de200], 0
je 0x100da707
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100da69e
mov dword [eax + 0x28], 0xffffe005
xor esi, esi
mov dword [eax + 0x2c], esi
mov dword [eax + 0x30], esi
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
test ecx, ecx
je 0x100da2f9
mov eax, dword [ebp + 0x10]
or ebx, 1
cmp ebx, eax
mov ebx, eax
jbe 0x100da30f
cmp dword [0x101de200], 0
je 0x100da711
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100da6b3
mov dword [eax + 0x28], 0xffffe003
jmp 0x100da2a6
mov eax, ebx
or eax, 1
mov dword [esp], eax
call sym.nss3.dll_PORT_Alloc_Util
xor esi, esi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100da2ae
mov eax, dword [edi + 8]
test eax, eax
je 0x100da3e3
cmp eax, 0x3fffffff
mov dword [ebp - 0x10], eax
ja 0x100da392
mov eax, dword [ebp - 0x10]
add eax, 2
mov ecx, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
shr edx, 5
mov ecx, edx
shl ecx, 4
sub eax, ecx
lea ecx, [edx + edx]
test eax, eax
mov dword [ebp - 0x28], ebx
lea ebx, [edx + edx - 2]
cmovne ebx, ecx
shl edx, 6
lea eax, [edx + eax*4]
add eax, ebx
mov ebx, dword [ebp - 0x28]
je 0x100da392
cmp eax, ebx
jbe 0x100da40c
cmp dword [0x101de200], 0
je 0x100da725
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100da6dd
mov dword [eax + 0x28], 0xffffe8b6
jmp 0x100da3bf
cmp dword [0x101de200], 0
je 0x100da71b
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100da6c8
mov dword [eax + 0x28], 0xffffe005
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100da3f1
mov dword [esp], 0
mov edx, esi
call fcn.100e37d0
xor esi, esi
jmp 0x100da2ae
xor ebx, ebx
mov esi, dword [ebp - 0x20]
mov byte [esi + ebx], 0
jmp 0x100da2ae
xor esi, esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100da2ae
mov dword [esp], eax
call dword [sym.imp.mozglue.dll_free]
jmp 0x100da2ae
mov edi, dword [edi + 4]
mov dword [esp + 4], 0x24
mov dword [esp], 1
call dword [sym.imp.mozglue.dll_calloc]
test eax, eax
je 0x100da3c7
mov edx, eax
mov dword [eax + 8], 0x40
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ebx
mov ecx, dword [ebp - 0x10]
cmp ecx, 2
mov dword [ebp - 0x14], edx
ja 0x100da45b
mov al, byte [edi]
mov byte [edx], al
cmp ecx, 2
jne 0x100da4a1
mov al, byte [edi + 1]
mov byte [edx + 1], al
mov eax, 2
jmp 0x100da4a4
mov edx, 0xaaaaaaab
mov eax, ecx
mul edx
lea eax, [edi + ecx]
mov dword [ebp - 0x1c], eax
shr edx, 1
lea eax, [edx + edx*2]
mov dword [ebp - 0x18], eax
mov eax, ecx
sub eax, dword [ebp - 0x18]
je 0x100da4ac
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
cmp eax, 1
je 0x100da495
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + edi + 1]
mov byte [edx + 1], cl
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov eax, ecx
jmp 0x100da4b2
xor eax, eax
inc eax
mov dword [edx + 4], eax
jmp 0x100da618
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jbe 0x100da618
add ebx, 0xfffffffd
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ebx, 0xfffffffd
mov edx, eax
shl eax, 8
movzx ecx, byte [edi + ebx + 3]
or eax, ecx
inc ebx
jne 0x100da4d0
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx + 8]
test ebx, ebx
mov dword [ebp - 0x18], edi
je 0x100da528
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx + 0xc]
cmp ebx, dword [ebp - 0x24]
jb 0x100da51f
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0xc], 0
mov ebx, dword [ebp - 0x10]
mov word [ebx], 0xa0d
add ebx, 2
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x14]
add dword [ebx + 0x20], 2
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx + 0xc]
add ebx, 4
mov edi, dword [ebp - 0x14]
mov dword [edi + 0xc], ebx
mov ebx, edx
shr ebx, 0xa
and ebx, 0x3f
mov bl, byte [ebx + 0x101ab338]
mov edi, dword [ebp - 0x10]
mov byte [edi], bl
shr edx, 4
and edx, 0x3f
mov dl, byte [edx + 0x101ab338]
mov byte [edi + 1], dl
shr eax, 6
and eax, 0x3f
mov al, byte [eax + 0x101ab338]
mov byte [edi + 2], al
add dword [ebp - 0x18], 3
and ecx, 0x3f
mov al, byte [ecx + 0x101ab338]
mov byte [edi + 3], al
add edi, 4
mov dword [ebp - 0x10], edi
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
add eax, 4
mov dword [edx + 0x20], eax
mov ebx, dword [ebp - 0x28]
cmp eax, ebx
jb 0x100da5c4
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x100da5d4
mov edi, dword [edx + 0x14]
mov dword [ebp - 0x24], edi
mov ebx, dword [edx + 0x18]
mov edi, edx
mov dword [ebp - 0x10], eax
call dword [section..00cfg]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [ebp - 0x10], ebx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call ecx
test eax, eax
js 0x100da699
mov dword [edi + 0x20], 0
mov edx, edi
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp edi, eax
jb 0x100da4c9
jmp 0x100da618
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp edi, eax
jae 0x100da5ca
cmp dword [0x101de200], 0
je 0x100da72f
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100da6f2
mov dword [eax + 0x28], 0xffffe8b6
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov edi, dword [ebp - 0x14]
jmp 0x100da625
mov ecx, edx
mov edi, edx
call fcn.100da760
test eax, eax
je 0x100da646
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100da638
mov dword [esp], eax
call dword [sym.imp.mozglue.dll_free]
mov edi, dword [ebp - 0x14]
mov dword [esp], edi
call dword [sym.imp.mozglue.dll_free]
jmp 0x100da3c7
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
mov ebx, dword [edi + 0x20]
mov dword [edi + 0x18], 0
mov ecx, edi
call fcn.100da760
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100da673
mov dword [esp], eax
call dword [sym.imp.mozglue.dll_free]
mov edi, dword [ebp - 0x14]
mov dword [esp], edi
call dword [sym.imp.mozglue.dll_free]
cmp dword [ebp - 0x10], 0xffffffff
je 0x100da691
cmp dword [ebp - 0x18], 0
jne 0x100da3e5
jmp 0x100da3c7
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
jmp 0x100da63b
mov eax, dword [ebp - 0x10]
jmp 0x100da628
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x100da29f
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x100da2f0
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x100da3b8
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x100da389
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x100da604
call fcn.100745e0
jmp 0x100da286
call fcn.100745e0
jmp 0x100da2d7
call fcn.100745e0
jmp 0x100da39f
call fcn.100745e0
jmp 0x100da370
call fcn.100745e0
jmp 0x100da5eb