Function at 0x10111960
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [0x101f3f98]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.nss3.dll_PR_GetIdentitiesLayer
test eax, eax
je 0x101119f9
mov esi, dword [eax + 4]
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
bt eax, 0xa
mov dword [ebp - 0x10], eax
jb 0x101119a4
mov eax, dword [esi + 0x16c]
mov dword [esp], eax
call sym.nss3.dll_PR_EnterMonitor
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp + 0xc]
bt eax, 0xa
jb 0x101119bb
mov eax, dword [esi + 0x170]
mov dword [esp], eax
call sym.nss3.dll_PR_EnterMonitor
dec edi
cmp edi, 0x2a
ja case.0x101119cd.4
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x1c]
xor edx, edx
jmp dword [edi*4 + 0x101c7040]
mov eax, dword [esi + 0x1c]
and ebx, 1
and eax, 0xfffffffe
or eax, ebx
mov dword [esi + 0x1c], eax
test ebx, ebx
mov eax, 0x101c648c
mov ecx, 0x101c645c
cmove ecx, eax
mov dword [esi + 4], ecx
jmp case.0x101119cd.15
cmp dword [0x101f2f50], 0
je 0x10111e85
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10111e31
mov dword [eax + 0x28], 0xffffe891
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor edx, edx
dec edx
jmp 0x10111dfe
mov eax, dword [esi + 0x20]
and ebx, 1
and eax, 0xfffffffb
lea eax, [eax + ebx*4]
jmp 0x10111ae3
mov eax, dword [esi + 0x20]
and ebx, 1
and eax, 0xfffffffe
jmp 0x10111ae1
and ebx, 1
shl ebx, 0x1e
mov eax, 0xbfffffff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0xc
mov eax, 0xffffefff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x10
mov eax, 0xfffeffff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x14
mov eax, 0xffefffff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x12
mov eax, 0xfffbffff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x1b
mov eax, 0xf7ffffff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x17
mov eax, 0xff7fffff
jmp 0x10111dd1
mov eax, dword [ecx]
and ebx, 3
and eax, 0xffffffe7
lea eax, [eax + ebx*8]
jmp 0x10111dd5
mov eax, dword [esi + 0x20]
shl ebx, 6
and ebx, 0x40
and eax, 0xffffffbf
or eax, ebx
mov dword [esi + 0x20], eax
jmp case.0x101119cd.15
shl ebx, 7
movzx eax, bl
mov edi, ecx
mov ecx, 0xffffff7f
jmp 0x10111da4
and ebx, 1
shl ebx, 0x11
mov eax, 0xfffdffff
jmp 0x10111dd1
test ebx, ebx
je 0x10111b1e
cmp dword [esi + 0xa24], 1
je case.0x101119cd.4
and ebx, 3
shl ebx, 0xd
mov eax, 0xffff9fff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x18
mov eax, 0xfeffffff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x1a
mov eax, 0xfbffffff
jmp 0x10111dd1
mov eax, dword [esi + 0x1c]
mov ecx, eax
and ecx, 0xfffffffd
mov dword [esi + 0x1c], ecx
test al, 1
mov eax, 0x101c648c
mov ecx, 0x101c645c
cmove ecx, eax
mov dword [esi + 4], ecx
jmp case.0x101119cd.7
mov eax, dword [ecx]
and ebx, 1
and eax, 0xfffffffb
lea eax, [eax + ebx*4]
jmp 0x10111dd5
and ebx, 1
shl ebx, 0x13
mov eax, 0xfff7ffff
jmp 0x10111dd1
shl ebx, 7
movzx eax, bl
mov ecx, 0xffffff7f
and ecx, dword [esi + 0x20]
or ecx, eax
mov dword [esi + 0x20], ecx
jmp case.0x101119cd.15
mov edi, ecx
mov eax, dword [ecx]
test ebx, ebx
je 0x10111bbb
mov ecx, eax
and ecx, 0x20
jne case.0x101119cd.4
shl ebx, 6
and ebx, 0x40
and eax, 0xffffffbf
jmp 0x10111be2
mov edi, ecx
mov eax, dword [ecx]
test ebx, ebx
je 0x10111bd9
mov ecx, eax
and ecx, 0x40
jne case.0x101119cd.4
shl ebx, 5
and ebx, 0x20
and eax, 0xffffffdf
or eax, ebx
mov dword [edi], eax
jmp case.0x101119cd.15
cmp dword [esi + 0xa24], 1
je case.0x101119cd.7
lea ecx, [esi + 0x24]
mov edx, ebx
call fcn.10111eb0
jmp 0x10111e29
and ebx, 1
shl ebx, 9
mov eax, 0xfffffdff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x19
mov eax, 0xfdffffff
jmp 0x10111dd1
shl ebx, 0x1f
mov eax, closesocket
jmp 0x10111dd1
and ebx, 1
shl ebx, 0xb
mov eax, 0xfffff7ff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x1c
mov eax, 0xefffffff
jmp 0x10111dd1
cmp dword [esi + 0xa24], 1
jne 0x10111e1f
test ebx, ebx
je case.0x101119cd.15
cmp dword [0x101f2f50], 0
je 0x10111e8f
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10111e46
mov dword [eax + 0x28], 0xffffe005
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor edx, edx
dec edx
jmp case.0x101119cd.15
xor eax, eax
mov edx, 0
test ebx, ebx
je 0x10111cf1
test byte [ecx + 1], 1
je 0x10111cf1
mov edi, ecx
cmp dword [0x101f2f50], 0
je 0x10111e99
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10111e5b
mov dword [eax + 0x28], 0xffffe005
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor edx, edx
dec edx
mov ecx, edi
xor eax, eax
cmp byte [0x101f3f9c], 0
cmove eax, ebx
test ebx, ebx
cmove eax, ebx
mov ebx, eax
and eax, 1
mov edi, ecx
mov ecx, 0xfffffbff
and ecx, dword [edi]
shl eax, 0xa
or ecx, eax
mov dword [edi], ecx
test ebx, ebx
jne case.0x101119cd.15
bt dword [ebp - 0x10], 0xa
jae 0x10111dde
mov ecx, esi
call fcn.101120d0
test eax, eax
je 0x10111e2d
mov edx, eax
or byte [edi + 1], 4
jmp 0x10111dfe
xor edx, edx
test ebx, ebx
je 0x10111d8a
test byte [ecx + 1], 4
je 0x10111d8a
mov edi, ecx
cmp dword [0x101f2f50], 0
je 0x10111ea3
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10111e70
mov dword [eax + 0x28], 0xffffe005
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor edx, edx
dec edx
mov ecx, edi
and ebx, 1
shl ebx, 8
mov eax, 0xfffffeff
jmp 0x10111dd1
shl ebx, 0xf
movzx eax, bx
mov edi, ecx
mov ecx, 0xffff7fff
and ecx, dword [edi]
or ecx, eax
mov dword [edi], ecx
jmp case.0x101119cd.15
and ebx, 1
shl ebx, 0x16
mov eax, 0xffbfffff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x15
mov eax, 0xffdfffff
jmp 0x10111dd1
and ebx, 1
shl ebx, 0x1d
mov eax, 0xdfffffff
and eax, dword [ecx]
or eax, ebx
mov dword [ecx], eax
bt dword [ebp - 0x10], 0xa
jb 0x10111dfe
mov eax, dword [esi + 0x170]
mov dword [esp], eax
mov edi, edx
call sym.nss3.dll_PR_ExitMonitor
mov eax, dword [esi + 0x16c]
mov dword [esp], eax
call sym.nss3.dll_PR_ExitMonitor
mov edx, edi
mov eax, edx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebx - 0x4002]
cmp eax, 0xffffc03d
jbe case.0x101119cd.4
mov word [esi + 0x14], bx
jmp case.0x101119cd.15
lea ecx, [esi + 0x24]
mov edx, ebx
call fcn.10111fc0
xor edx, edx
jmp case.0x101119cd.15
xor edx, edx
jmp 0x10111dfe
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
jmp 0x10111a1f
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
jmp 0x10111c8b
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
jmp 0x10111cdb
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
jmp 0x10111d76
call fcn.100029d0
jmp 0x10111a06
call fcn.100029d0
jmp 0x10111c72
call fcn.100029d0
jmp 0x10111cc2
call fcn.100029d0
jmp 0x10111d5d