Function at 0x10112f20
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 [0x101f5fc8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.nss3.dll_PR_GetIdentitiesLayer
test eax, eax
je 0x10112fb9
mov esi, dword [eax + 4]
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
bt eax, 0xa
mov dword [ebp - 0x10], eax
jb 0x10112f64
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 0x10112f7b
mov eax, dword [esi + 0x170]
mov dword [esp], eax
call sym.nss3.dll_PR_EnterMonitor
dec edi
cmp edi, 0x2a
ja case.0x10112f8d.4
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x1c]
xor edx, edx
jmp dword [edi*4 + 0x101c9220]
mov eax, dword [esi + 0x1c]
and ebx, 1
and eax, 0xfffffffe
or eax, ebx
mov dword [esi + 0x1c], eax
test ebx, ebx
mov eax, 0x101c866c
mov ecx, 0x101c863c
cmove ecx, eax
mov dword [esi + 4], ecx
jmp case.0x10112f8d.15
cmp dword [0x101f4f80], 0
je 0x10113445
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x101133f1
mov dword [eax + 0x28], 0xffffe891
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor edx, edx
dec edx
jmp 0x101133be
mov eax, dword [esi + 0x20]
and ebx, 1
and eax, 0xfffffffb
lea eax, [eax + ebx*4]
jmp 0x101130a3
mov eax, dword [esi + 0x20]
and ebx, 1
and eax, 0xfffffffe
jmp 0x101130a1
and ebx, 1
shl ebx, 0x1e
mov eax, 0xbfffffff
jmp 0x10113391
and ebx, 1
shl ebx, 0xc
mov eax, 0xffffefff
jmp 0x10113391
and ebx, 1
shl ebx, 0x10
mov eax, 0xfffeffff
jmp 0x10113391
and ebx, 1
shl ebx, 0x14
mov eax, 0xffefffff
jmp 0x10113391
and ebx, 1
shl ebx, 0x12
mov eax, 0xfffbffff
jmp 0x10113391
and ebx, 1
shl ebx, 0x1b
mov eax, 0xf7ffffff
jmp 0x10113391
and ebx, 1
shl ebx, 0x17
mov eax, 0xff7fffff
jmp 0x10113391
mov eax, dword [ecx]
and ebx, 3
and eax, 0xffffffe7
lea eax, [eax + ebx*8]
jmp 0x10113395
mov eax, dword [esi + 0x20]
shl ebx, 6
and ebx, 0x40
and eax, 0xffffffbf
or eax, ebx
mov dword [esi + 0x20], eax
jmp case.0x10112f8d.15
shl ebx, 7
movzx eax, bl
mov edi, ecx
mov ecx, 0xffffff7f
jmp 0x10113364
and ebx, 1
shl ebx, 0x11
mov eax, 0xfffdffff
jmp 0x10113391
test ebx, ebx
je 0x101130de
cmp dword [esi + 0xa24], 1
je case.0x10112f8d.4
and ebx, 3
shl ebx, 0xd
mov eax, 0xffff9fff
jmp 0x10113391
and ebx, 1
shl ebx, 0x18
mov eax, 0xfeffffff
jmp 0x10113391
and ebx, 1
shl ebx, 0x1a
mov eax, 0xfbffffff
jmp 0x10113391
mov eax, dword [esi + 0x1c]
mov ecx, eax
and ecx, 0xfffffffd
mov dword [esi + 0x1c], ecx
test al, 1
mov eax, 0x101c866c
mov ecx, 0x101c863c
cmove ecx, eax
mov dword [esi + 4], ecx
jmp case.0x10112f8d.7
mov eax, dword [ecx]
and ebx, 1
and eax, 0xfffffffb
lea eax, [eax + ebx*4]
jmp 0x10113395
and ebx, 1
shl ebx, 0x13
mov eax, 0xfff7ffff
jmp 0x10113391
shl ebx, 7
movzx eax, bl
mov ecx, 0xffffff7f
and ecx, dword [esi + 0x20]
or ecx, eax
mov dword [esi + 0x20], ecx
jmp case.0x10112f8d.15
mov edi, ecx
mov eax, dword [ecx]
test ebx, ebx
je 0x1011317b
mov ecx, eax
and ecx, 0x20
jne case.0x10112f8d.4
shl ebx, 6
and ebx, 0x40
and eax, 0xffffffbf
jmp 0x101131a2
mov edi, ecx
mov eax, dword [ecx]
test ebx, ebx
je 0x10113199
mov ecx, eax
and ecx, 0x40
jne case.0x10112f8d.4
shl ebx, 5
and ebx, 0x20
and eax, 0xffffffdf
or eax, ebx
mov dword [edi], eax
jmp case.0x10112f8d.15
cmp dword [esi + 0xa24], 1
je case.0x10112f8d.7
lea ecx, [esi + 0x24]
mov edx, ebx
call fcn.10113470
jmp 0x101133e9
and ebx, 1
shl ebx, 9
mov eax, 0xfffffdff
jmp 0x10113391
and ebx, 1
shl ebx, 0x19
mov eax, 0xfdffffff
jmp 0x10113391
shl ebx, 0x1f
mov eax, closesocket
jmp 0x10113391
and ebx, 1
shl ebx, 0xb
mov eax, 0xfffff7ff
jmp 0x10113391
and ebx, 1
shl ebx, 0x1c
mov eax, 0xefffffff
jmp 0x10113391
cmp dword [esi + 0xa24], 1
jne 0x101133df
test ebx, ebx
je case.0x10112f8d.15
cmp dword [0x101f4f80], 0
je 0x1011344f
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10113406
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.0x10112f8d.15
xor eax, eax
mov edx, 0
test ebx, ebx
je 0x101132b1
test byte [ecx + 1], 1
je 0x101132b1
mov edi, ecx
cmp dword [0x101f4f80], 0
je 0x10113459
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1011341b
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 [0x101f5fcc], 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.0x10112f8d.15
bt dword [ebp - 0x10], 0xa
jae 0x1011339e
mov ecx, esi
call fcn.10113690
test eax, eax
je 0x101133ed
mov edx, eax
or byte [edi + 1], 4
jmp 0x101133be
xor edx, edx
test ebx, ebx
je 0x1011334a
test byte [ecx + 1], 4
je 0x1011334a
mov edi, ecx
cmp dword [0x101f4f80], 0
je 0x10113463
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10113430
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 0x10113391
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.0x10112f8d.15
and ebx, 1
shl ebx, 0x16
mov eax, 0xffbfffff
jmp 0x10113391
and ebx, 1
shl ebx, 0x15
mov eax, 0xffdfffff
jmp 0x10113391
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 0x101133be
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.0x10112f8d.4
mov word [esi + 0x14], bx
jmp case.0x10112f8d.15
lea ecx, [esi + 0x24]
mov edx, ebx
call fcn.10113580
xor edx, edx
jmp case.0x10112f8d.15
xor edx, edx
jmp 0x101133be
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
jmp 0x10112fdf
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
jmp 0x1011324b
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
jmp 0x1011329b
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
jmp 0x10113336
call fcn.1001b2e0
jmp 0x10112fc6
call fcn.1001b2e0
jmp 0x10113232
call fcn.1001b2e0
jmp 0x10113282
call fcn.1001b2e0
jmp 0x1011331d