Function at 0x100d1e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x100d1fe5
test ebx, ebx
je 0x100d1fed
cmp dword [edx + 4], 0
jne 0x100d1fed
mov ecx, dword [ebp + 8]
xor esi, esi
mov eax, 0
test ecx, ecx
je 0x100d1e74
push ecx
mov edi, edx
call sym.nss3.dll_PORT_ArenaMark_Util
mov edx, edi
add esp, 4
mov dword [ebp - 0x28], eax
movd xmm0, ebx
por xmm0, xmmword [0x101b7ba0]
subsd xmm0, qword [0x101af478]
mulsd xmm0, qword [0x101be688]
cvttsd2si eax, xmm0
mov ecx, eax
sar ecx, 0x1f
subsd xmm0, qword [0x101b7bd0]
cvttsd2si edi, xmm0
and edi, ecx
or edi, eax
je 0x100d2201
mov dword [ebp - 0x14], edi
push edi
push edx
push dword [ebp + 8]
call sym.nss3.dll_SECITEM_AllocItem_Util
add esp, 0xc
test eax, eax
je 0x100d2201
mov edi, eax
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x100d1eed
push dword [ebp - 0x14]
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100d21ff
push 0x1c
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x100d2022
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], edi
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [eax + 0x10], edi
mov dword [ebp - 0x1c], edi
xor ecx, ecx
mov edi, ebx
mov dword [ebp - 0x14], ecx
movzx edx, byte [esi]
mov eax, 0x40
sub eax, edx
lea ebx, [edx + 0xffa5]
and ebx, eax
mov eax, edx
add al, 0xc0
and al, bh
mov ebx, 0x60
sub ebx, edx
lea ecx, [edx + 0xff85]
and ecx, ebx
mov ebx, edx
add bl, 0xba
and bl, ch
or bl, al
mov eax, 0x2f
sub eax, edx
lea ecx, [edx + 0xffc6]
and ecx, eax
mov bh, dl
add bh, 5
and bh, ch
mov ecx, 0x2a
sub ecx, edx
lea eax, [edx + 0x3fd4]
and eax, ecx
and ah, 0x3f
or ah, bh
or ah, bl
mov ecx, 0x2e
sub ecx, edx
mov ebx, edx
add ebx, 0x7fd0
and ebx, ecx
and bh, 0x40
or bh, ah
jne 0x100d1fa2
cmp dl, 0x3d
je 0x100d1fa2
mov ecx, dword [ebp - 0x14]
jmp 0x100d1fac
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov byte [eax + ecx], dl
inc ecx
inc esi
lea ebx, [edi - 1]
cmp ecx, 3
jg 0x100d1fc0
cmp edi, 1
mov edi, ebx
jne 0x100d1f21
cmp ecx, 3
jle 0x100d2029
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov edx, edi
call fcn.100d23d0
test eax, eax
js 0x100d2034
add edi, eax
test ebx, ebx
jne 0x100d1f1a
jmp 0x100d20e9
test ebx, ebx
jne 0x100d1e59
cmp dword [0x101f2f50], 0
je 0x100d22d2
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100d22b5
mov dword [eax + 0x28], 0xffffe005
xor edi, edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
jmp 0x100d223b
xor ebx, ebx
jmp 0x100d21d0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov edi, dword [ebp - 0x1c]
jmp 0x100d204b
mov ecx, dword [ebp - 0x10]
mov edx, edi
call fcn.100d2630
test eax, eax
js 0x100d216b
mov edi, dword [ebp - 0x1c]
add edi, eax
test ebx, ebx
je 0x100d20e9
mov dword [ebp - 0x1c], edi
xor eax, eax
mov dword [ebp - 0x2c], eax
movzx ecx, byte [esi + eax]
mov eax, 0x40
sub eax, ecx
lea edx, [ecx + 0xffa5]
and edx, eax
mov eax, ecx
add al, 0xc0
and al, dh
mov byte [ebp - 0x14], al
mov eax, 0x60
sub eax, ecx
lea edx, [ecx + 0xff85]
and edx, eax
mov eax, edx
mov dh, cl
add dh, 0xba
and dh, ah
mov eax, 0x2f
sub eax, ecx
lea edi, [ecx + 0xffc6]
and edi, eax
mov dl, cl
add dl, 5
mov eax, edi
and dl, ah
mov edi, 0x2a
sub edi, ecx
lea eax, [ecx + 0x3fd4]
and eax, edi
mov edi, 0x2e
sub edi, ecx
add ecx, 0x7fd0
and ecx, edi
or dh, byte [ebp - 0x14]
and ah, 0x3f
or ah, dl
or ah, dh
and ch, 0x40
or ch, ah
jne 0x100d216b
mov eax, dword [ebp - 0x2c]
inc eax
cmp ebx, eax
jne 0x100d2058
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x10]
sub edi, ecx
mov edx, edi
mov dword [ebx + 0x18], edi
test eax, eax
je 0x100d2185
cmp byte [ebx], 0x3d
mov edi, dword [ebp - 0x18]
je 0x100d2188
cmp eax, 3
jg 0x100d2126
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov byte [ebx + eax], 0x3d
mov eax, dword [ebx + 4]
cmp eax, 4
jl 0x100d210e
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
add edx, ecx
mov dword [ebx + 4], 0
mov ecx, ebx
call fcn.100d2630
test eax, eax
js 0x100d216b
mov esi, eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x100d217d
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov edi, dword [ebx + 0x10]
call dword [section..00cfg]
push esi
push edi
push dword [ebp - 0x14]
call ecx
add esp, 0xc
test eax, eax
js 0x100d216b
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x18]
jmp 0x100d2185
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x10], 0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
jmp 0x100d21d0
add esi, dword [ebx + 0x18]
mov edx, esi
mov dword [ebx + 0x18], esi
mov edi, dword [ebp - 0x18]
mov dword [ebx + 0x10], 0
mov dword [edi + 8], edx
mov eax, dword [ebx + 4]
test eax, eax
je 0x100d21a2
cmp byte [ebx], 0x3d
jne 0x100d2245
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100d21b8
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test bl, bl
mov ebx, 0
mov esi, dword [ebp - 0x24]
je 0x100d223b
test esi, esi
jne 0x100d21e0
push dword [ebp - 0x20]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x100d21ff
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100d21f5
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, edi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100d2226
mov edx, dword [ebp - 0x28]
push 0
call fcn.100dbe30
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100d2239
xor edi, edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x100d223b
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
push eax
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor edi, edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 3
jg 0x100d225c
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov byte [ebx + eax], 0x3d
mov eax, dword [ebx + 4]
cmp eax, 4
jl 0x100d224a
mov dword [ebx + 4], 0
mov edx, dword [ebx + 0x10]
add edx, dword [ebx + 0x18]
mov ecx, ebx
call fcn.100d2630
mov esi, eax
mov eax, ebx
mov bl, 1
test esi, esi
js 0x100d21a4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100d21a2
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
mov edi, dword [eax + 0x10]
call dword [section..00cfg]
push esi
push edi
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x14]
call ecx
add esp, 0xc
test eax, eax
jns 0x100d21a2
jmp 0x100d21a4
sub esp, 0x10
movapd xmm0, xmmword [0x101af1a0]
movupd xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100d200e
call fcn.100029d0
jmp 0x100d1ffa