Function at 0x10119040
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0x10]
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 0x101190c2
mov ebx, dword [eax + 4]
mov dword [ebx], eax
test esi, esi
je 0x10119103
mov eax, dword [ebx + 0x1c]
bt eax, 0xa
jb 0x1011908c
mov eax, dword [ebx + 0x16c]
mov dword [esp], eax
call sym.nss3.dll_PR_EnterMonitor
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp + 0xc]
bt eax, 0xa
jb 0x101190a3
mov eax, dword [ebx + 0x170]
mov dword [esp], eax
call sym.nss3.dll_PR_EnterMonitor
lea ecx, [ebx + 0x1c]
dec edi
cmp edi, 0x28
ja case.0x101190b4.4
xor esi, esi
xor edx, edx
jmp dword [edi*4 + 0x101b3bd4]
mov edx, dword [ecx]
jmp 0x10119268
cmp dword [0x101de200], 0
je 0x10119321
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x101192e5
mov dword [eax + 0x28], 0xffffe891
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
test esi, esi
je 0x10119103
mov dword [esi], 0
jmp 0x10119138
cmp dword [0x101de200], 0
je 0x1011932b
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x101192fa
mov dword [eax + 0x28], 0xffffe005
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
xor esi, esi
dec esi
jmp 0x101192a5
movzx edx, word [ebx + 0x14]
jmp case.0x101190b4.2
mov edx, dword [ebx + 0x20]
jmp 0x101191ee
mov edx, dword [ecx]
shr edx, 0x16
jmp 0x10119268
mov edx, dword [ebx + 0x20]
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x1e
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x15
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0xf
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0xa
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x1b
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0xc
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x10
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x14
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x17
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 6
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x12
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 8
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x18
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x1a
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 2
jmp 0x10119268
movzx eax, word [ebx + 0x24]
xor edx, edx
cmp eax, 0x300
sete dl
jmp case.0x101190b4.2
mov edx, dword [ecx]
shr edx, 0x11
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 5
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0xd
jmp 0x1011921d
mov edx, dword [ecx]
shr edx, 3
and edx, 3
jmp case.0x101190b4.2
mov edx, dword [ecx]
shr edx, 0x1f
jmp case.0x101190b4.2
mov edx, dword [ecx]
shr edx, 0x13
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x19
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 7
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x1c
jmp 0x10119268
movzx eax, word [ebx + 0x26]
xor edx, edx
cmp eax, 0x300
seta dl
jmp case.0x101190b4.2
mov edx, dword [ecx]
shr edx, 9
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0xb
jmp 0x10119268
mov edx, dword [ecx]
shr edx, 0x1d
and edx, 1
mov eax, dword [ecx]
bt eax, 0xa
jb 0x10119288
mov eax, dword [ebx + 0x170]
mov dword [esp], eax
mov edi, edx
call sym.nss3.dll_PR_ExitMonitor
mov edx, edi
mov eax, dword [ebx + 0x1c]
bt eax, 0xa
jb 0x101192a0
mov eax, dword [ebx + 0x16c]
mov dword [esp], eax
mov edi, edx
call sym.nss3.dll_PR_ExitMonitor
mov edx, edi
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, ecx
cmp dword [0x101de200], 0
je 0x10119335
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1011930f
mov dword [eax + 0x28], 0xffffe005
xor edx, edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
xor esi, esi
dec esi
mov ecx, edi
jmp case.0x101190b4.2
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x101190e8
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x10119129
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x101192cf
call fcn.100745e0
jmp 0x101190cf
call fcn.100745e0
jmp 0x10119110
call fcn.100745e0
jmp 0x101192ba