Function at 0x10118840
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 [0x101dfbd0]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.nss3.dll_PR_GetIdentitiesLayer
test eax, eax
je 0x101188d9
mov esi, dword [eax + 4]
mov dword [esi], eax
mov eax, dword [esi + 0x1c]
bt eax, 0xa
mov dword [ebp - 0x10], eax
jb 0x10118884
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 0x1011889b
mov eax, dword [esi + 0x170]
mov dword [esp], eax
call sym.nss3.dll_PR_EnterMonitor
dec edi
cmp edi, 0x28
ja case.0x101188ad.4
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x1c]
xor edx, edx
jmp dword [edi*4 + 0x101b3b30]
mov eax, dword [esi + 0x1c]
and ebx, 1
and eax, 0xfffffffe
or eax, ebx
mov dword [esi + 0x1c], eax
test ebx, ebx
mov eax, 0x101b2f7c
mov ecx, 0x101b2f4c
cmove ecx, eax
mov dword [esi + 4], ecx
jmp case.0x101188ad.15
cmp dword [0x101de200], 0
je 0x10118d41
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10118ced
mov dword [eax + 0x28], 0xffffe891
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor edx, edx
dec edx
jmp 0x10118cd1
lea eax, [ebx - 0x40]
cmp eax, 0x3fc2
jae case.0x101188ad.4
mov word [esi + 0x14], bx
jmp case.0x101188ad.15
mov eax, dword [esi + 0x20]
and ebx, 1
and eax, 0xfffffffb
lea eax, [eax + ebx*4]
jmp 0x10118956
and ebx, 1
shl ebx, 0x16
mov eax, 0xffbfffff
jmp 0x10118ca4
mov eax, dword [esi + 0x20]
and ebx, 1
and eax, 0xfffffffe
or eax, ebx
mov dword [esi + 0x20], eax
jmp case.0x101188ad.15
and ebx, 1
shl ebx, 0x1e
mov eax, 0xbfffffff
jmp 0x10118ca4
and ebx, 1
shl ebx, 0x15
mov eax, 0xffdfffff
jmp 0x10118ca4
shl ebx, 0xf
movzx eax, bx
mov edi, ecx
mov ecx, 0xffff7fff
jmp 0x10118c1c
xor eax, eax
mov edx, 0
test ebx, ebx
je 0x101189e4
test byte [ecx + 1], 1
mov edx, 0
je 0x101189e4
mov edi, ecx
cmp dword [0x101de200], 0
je 0x10118d55
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10118d17
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 [0x101dfbd4], 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.0x101188ad.15
bt dword [ebp - 0x10], 0xa
jae 0x10118cb1
mov ecx, esi
call fcn.10118fa0
test eax, eax
je 0x10118ce9
mov edx, eax
or byte [edi + 1], 4
jmp 0x10118cd1
mov eax, dword [esi + 0x1c]
mov ecx, eax
and ecx, 0xfffffffd
mov dword [esi + 0x1c], ecx
test al, 1
mov eax, 0x101b2f7c
mov ecx, 0x101b2f4c
cmove ecx, eax
mov dword [esi + 4], ecx
jmp case.0x101188ad.7
and ebx, 1
shl ebx, 0x1b
mov eax, 0xf7ffffff
jmp 0x10118ca4
and ebx, 1
shl ebx, 0xc
mov eax, 0xffffefff
jmp 0x10118ca4
and ebx, 1
shl ebx, 0x10
mov eax, 0xfffeffff
jmp 0x10118ca4
and ebx, 1
shl ebx, 0x14
mov eax, 0xffefffff
jmp 0x10118ca4
and ebx, 1
shl ebx, 0x17
mov eax, 0xff7fffff
jmp 0x10118ca4
mov edi, ecx
mov eax, dword [ecx]
test ebx, ebx
je 0x10118aba
mov ecx, eax
and ecx, 0x20
jne case.0x101188ad.4
shl ebx, 6
and ebx, 0x40
and eax, 0xffffffbf
jmp 0x10118ba8
and ebx, 1
shl ebx, 0x12
mov eax, 0xfffbffff
jmp 0x10118ca4
xor edx, edx
test ebx, ebx
je 0x10118b20
test byte [ecx + 1], 4
je 0x10118b20
mov edi, ecx
cmp dword [0x101de200], 0
je 0x10118d5f
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10118d2c
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 0x10118ca4
and ebx, 1
shl ebx, 0x18
mov eax, 0xfeffffff
jmp 0x10118ca4
and ebx, 1
shl ebx, 0x1a
mov eax, 0xfbffffff
jmp 0x10118ca4
mov eax, dword [ecx]
and ebx, 1
and eax, 0xfffffffb
lea eax, [eax + ebx*4]
jmp 0x10118ca8
cmp dword [esi + 0x9f8], 1
je case.0x101188ad.7
lea ecx, [esi + 0x24]
mov edx, ebx
call fcn.10118ea0
jmp 0x10118ce5
and ebx, 1
shl ebx, 0x11
mov eax, 0xfffdffff
jmp 0x10118ca4
mov edi, ecx
mov eax, dword [ecx]
test ebx, ebx
je 0x10118b9f
mov ecx, eax
and ecx, 0x40
jne case.0x101188ad.4
shl ebx, 5
and ebx, 0x20
and eax, 0xffffffdf
or eax, ebx
mov dword [edi], eax
jmp case.0x101188ad.15
test ebx, ebx
je 0x10118bc2
cmp dword [esi + 0x9f8], 1
je case.0x101188ad.4
and ebx, 3
shl ebx, 0xd
mov eax, 0xffff9fff
jmp 0x10118ca4
shl ebx, 0x1f
mov eax, bind
jmp 0x10118ca4
mov eax, dword [ecx]
and ebx, 3
and eax, 0xffffffe7
lea eax, [eax + ebx*8]
jmp 0x10118ca8
and ebx, 1
shl ebx, 0x13
mov eax, 0xfff7ffff
jmp 0x10118ca4
and ebx, 1
shl ebx, 0x19
mov eax, 0xfdffffff
jmp 0x10118ca4
shl ebx, 7
movzx eax, bl
mov edi, ecx
mov ecx, 0xffffff7f
and ecx, dword [edi]
or ecx, eax
mov dword [edi], ecx
jmp case.0x101188ad.15
and ebx, 1
shl ebx, 0x1c
mov eax, 0xefffffff
jmp 0x10118ca4
cmp dword [esi + 0x9f8], 1
jne 0x10118cdb
test ebx, ebx
je case.0x101188ad.15
cmp dword [0x101de200], 0
je 0x10118d4b
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x10118d02
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.0x101188ad.15
and ebx, 1
shl ebx, 9
mov eax, 0xfffffdff
jmp 0x10118ca4
and ebx, 1
shl ebx, 0xb
mov eax, 0xfffff7ff
jmp 0x10118ca4
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 0x10118cd1
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 ecx, [esi + 0x24]
mov edx, ebx
call fcn.10118d70
xor edx, edx
jmp case.0x101188ad.15
xor edx, edx
jmp 0x10118cd1
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x101188ff
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x10118c6b
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x101189ce
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x10118b0c
call fcn.100745e0
jmp 0x101188e6
call fcn.100745e0
jmp 0x10118c52
call fcn.100745e0
jmp 0x101189b5
call fcn.100745e0
jmp 0x10118af3