Function at 0x100d33f0
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 0x100d35a5
test ebx, ebx
je 0x100d35ad
cmp dword [edx + 4], 0
jne 0x100d35ad
mov ecx, dword [ebp + 8]
xor esi, esi
mov eax, 0
test ecx, ecx
je 0x100d3434
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 [0x101b9d80]
subsd xmm0, qword [0x101b14b8]
mulsd xmm0, qword [0x101c0868]
cvttsd2si eax, xmm0
mov ecx, eax
sar ecx, 0x1f
subsd xmm0, qword [0x101b9db0]
cvttsd2si edi, xmm0
and edi, ecx
or edi, eax
je 0x100d37c1
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 0x100d37c1
mov edi, eax
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x100d34ad
push dword [ebp - 0x14]
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100d37bf
push 0x1c
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x100d35e2
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 0x100d3562
cmp dl, 0x3d
je 0x100d3562
mov ecx, dword [ebp - 0x14]
jmp 0x100d356c
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 0x100d3580
cmp edi, 1
mov edi, ebx
jne 0x100d34e1
cmp ecx, 3
jle 0x100d35e9
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov edx, edi
call fcn.100d3990
test eax, eax
js 0x100d35f4
add edi, eax
test ebx, ebx
jne 0x100d34da
jmp 0x100d36a9
test ebx, ebx
jne 0x100d3419
cmp dword [0x101f4f80], 0
je 0x100d3892
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100d3875
mov dword [eax + 0x28], 0xffffe005
xor edi, edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
jmp 0x100d37fb
xor ebx, ebx
jmp 0x100d3790
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov edi, dword [ebp - 0x1c]
jmp 0x100d360b
mov ecx, dword [ebp - 0x10]
mov edx, edi
call fcn.100d3bf0
test eax, eax
js 0x100d372b
mov edi, dword [ebp - 0x1c]
add edi, eax
test ebx, ebx
je 0x100d36a9
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 0x100d372b
mov eax, dword [ebp - 0x2c]
inc eax
cmp ebx, eax
jne 0x100d3618
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 0x100d3745
cmp byte [ebx], 0x3d
mov edi, dword [ebp - 0x18]
je 0x100d3748
cmp eax, 3
jg 0x100d36e6
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov byte [ebx + eax], 0x3d
mov eax, dword [ebx + 4]
cmp eax, 4
jl 0x100d36ce
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
add edx, ecx
mov dword [ebx + 4], 0
mov ecx, ebx
call fcn.100d3bf0
test eax, eax
js 0x100d372b
mov esi, eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x100d373d
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 0x100d372b
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x18]
jmp 0x100d3745
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x10], 0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
jmp 0x100d3790
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 0x100d3762
cmp byte [ebx], 0x3d
jne 0x100d3805
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100d3778
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 0x100d37fb
test esi, esi
jne 0x100d37a0
push dword [ebp - 0x20]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x100d37bf
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100d37b5
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 0x100d37e6
mov edx, dword [ebp - 0x28]
push 0
call fcn.100dd3f0
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100d37f9
xor edi, edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x100d37fb
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 0x100d381c
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov byte [ebx + eax], 0x3d
mov eax, dword [ebx + 4]
cmp eax, 4
jl 0x100d380a
mov dword [ebx + 4], 0
mov edx, dword [ebx + 0x10]
add edx, dword [ebx + 0x18]
mov ecx, ebx
call fcn.100d3bf0
mov esi, eax
mov eax, ebx
mov bl, 1
test esi, esi
js 0x100d3764
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100d3762
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 0x100d3762
jmp 0x100d3764
sub esp, 0x10
movapd xmm0, xmmword [0x101b11e0]
movupd xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100d35ce
call fcn.1001b2e0
jmp 0x100d35ba