Function at 0x10109280
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov edi, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [esp + 0x40], eax
cmp dword [edi + 0x6bc], 0
je 0x101092ca
push 0
push 0xffffd0ac
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [edi + 0x1ac]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x1bc]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x1d0]
mov dword [esp + 0x14], eax
lea eax, [edi + 0x618]
mov dword [esp + 0x18], eax
test byte [edi + 0x1d], 4
jne 0x10109306
push dword [edi + 0x170]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
cmp dword [edi + 0x544], 0
jne 0x101098d4
cmp dword [edi + 0x148], 0
jne 0x101098ea
mov eax, dword [edi + 0x60c]
mov dword [esp + 0x1c], eax
test byte [edi + 0x1d], 4
jne 0x1010933e
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov ecx, 0
cmp dword [edi + 0x60], esi
je 0x10109366
test byte [edi + 0x1f], 0x40
je 0x10109366
cmp dword [edi + 0x450], 1
lea eax, [esp + 0x20]
cmove ecx, eax
cmp dword [edi + 0x48], 0
jne 0x101092b5
cmp dword [edi + 0xa24], 1
jne 0x101093da
mov dword [edi + 0x188], 1
mov dword [edi + 0x19c], 0
mov eax, dword [edi + 0x1d4]
mov ecx, dword [edi + 0x1e0]
cmp ecx, eax
jne 0x10109662
xor eax, eax
mov dword [edi + 0x1e0], eax
mov dword [edi + 0x1d4], eax
movzx ecx, word [edi + 0x58]
mov eax, dword [edi + 0x1d8]
cmp ecx, 0x303
ja 0x10109603
mov ecx, 0x480d
cmp eax, 0x480d
jb 0x10109620
jmp 0x1010963b
mov dword [esp + 8], ecx
mov edx, dword [edi + 0x188]
test edx, edx
je 0x101093f0
mov esi, dword [edi + 0x1a0]
jmp 0x1010941a
mov dword [edi + 0x188], 1
movaps xmm0, xmmword [0x101c6900]
movups xmmword [edi + 0x19c], xmm0
mov dword [edi + 0x1b0], 0
mov esi, 5
xor edx, edx
inc edx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0
mov ebx, dword [edi + 0x19c]
cmp edx, 1
mov eax, dword [esp + 4]
cmove eax, dword [esp + 0xc]
add eax, ebx
push dword [ebp + 0xc]
push esi
push eax
push edi
call fcn.1010b4f0
add esp, 0x10
test eax, eax
jle 0x101098ba
mov ecx, dword [edi + 0x1a0]
mov esi, ecx
sub esi, eax
jb 0x101098c5
mov ebx, dword [edi + 0x19c]
add ebx, eax
mov dword [edi + 0x19c], ebx
mov dword [edi + 0x1a0], esi
mov edx, dword [edi + 0x188]
cmp edx, 2
jne 0x1010948a
add dword [edi + 0x1b0], eax
cmp ecx, eax
jne 0x10109431
cmp edx, 2
je 0x1010989e
cmp edx, 1
jne 0x1010942b
cmp dword [esp + 8], 0
je 0x101094d8
cmp dword [edi + 0x1e4], 0
jne 0x101094d8
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
test al, 0x40
jne 0x101094d8
mov edx, eax
and dl, 0xfc
mov cl, byte [edi + 0x1bd]
cmp dl, 0x14
mov edx, dword [esp + 8]
jne 0x101095cf
cmp cl, 3
jne 0x101095cf
movzx eax, word [edi + 0x1bf]
rol ax, 8
movzx esi, ax
mov dword [edi + 0x1a0], esi
mov dword [edi + 0x1cc], 5
cmp byte [esp], 0
je 0x10109500
xor ebx, ebx
jmp 0x1010952c
cmp esi, 0x4800
ja 0x101099c4
mov bl, 1
cmp esi, 0x4101
jb 0x10109525
movzx eax, word [edi + 0x58]
cmp eax, 0x304
jae 0x101099c4
mov dword [esp], 0
mov dword [edi + 0x188], 2
xor eax, eax
mov dword [edi + 0x19c], eax
mov dword [edi + 0x1b0], eax
cmp esi, dword [edi + 0x1b4]
jbe 0x10109571
push esi
push dword [esp + 0x14]
call fcn.1010b8c0
add esp, 8
test eax, eax
jne 0x101098ad
mov esi, dword [edi + 0x1a0]
mov eax, dword [edi + 0x1ac]
mov dword [esp + 4], eax
test bl, bl
jne 0x101095bc
cmp esi, 8
jbe 0x101099e4
movzx eax, byte [esp]
mov ecx, 5
sub ecx, eax
mov dword [edi + 0x1b0], ecx
add eax, dword [esp + 0xc]
push ecx
push eax
mov ebx, dword [esp + 0xc]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [edi + 0x1a0]
mov eax, dword [edi + 0x1b0]
sub esi, eax
mov dword [edi + 0x1a0], esi
add ebx, eax
mov dword [esp + 4], ebx
test esi, esi
je 0x1010989e
mov edx, dword [edi + 0x188]
jmp 0x1010942b
movzx ecx, cl
mov esi, eax
and esi, 0x7f
shl esi, 8
or esi, ecx
mov dword [edi + 0x1a0], esi
mov dword [edx], 1
test al, al
js 0x101095f9
mov al, byte [edi + 0x1be]
mov byte [edx + 4], al
mov al, 3
jmp 0x101095fb
mov al, 2
mov dword [esp], eax
jmp 0x101094fc
cmp eax, 0x4105
mov eax, 0x4105
je 0x1010963b
push dword [esp + 0x14]
call fcn.1010bf00
add esp, 4
mov ecx, 0x4105
push ecx
push dword [esp + 0x18]
call fcn.1010b8c0
add esp, 8
test eax, eax
jne 0x10109965
mov eax, dword [edi + 0x1d8]
push dword [ebp + 0xc]
push eax
push dword [edi + 0x1d0]
push edi
call fcn.1010b4f0
add esp, 0x10
test eax, eax
jle 0x101099af
mov dword [edi + 0x1d4], eax
mov ecx, dword [edi + 0x1e0]
mov edx, dword [edi + 0x1d0]
movzx ebx, word [edi + 0x58]
mov esi, 0xd
cmp ebx, 0x304
mov dword [esp + 4], edx
jae 0x10109682
xor ebx, ebx
inc ebx
jmp 0x101096a8
movzx edx, byte [edx + ecx]
mov dword [esp], edx
cmp dl, 0x1a
ja 0x10109847
mov ebx, 0x4600000
mov edx, dword [esp]
bt ebx, edx
mov ebx, 1
jae 0x10109847
sub eax, ecx
mov dword [esp + 8], 0xffffe892
cmp eax, esi
jb 0x1010994a
mov eax, dword [esp + 4]
add eax, ecx
push esi
push eax
push dword [esp + 0x14]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x1cc], esi
mov eax, dword [edi + 0x1e0]
add eax, esi
mov dword [edi + 0x1e0], eax
test ebx, ebx
je 0x1010970c
movzx ecx, word [esi + edi + 0x1ba]
rol cx, 8
movzx ecx, cx
mov edx, dword [edi + 0x1d4]
sub edx, eax
mov dword [edi + 0x1a0], ecx
cmp edx, ecx
jae 0x1010971a
jmp 0x1010994a
mov ecx, dword [edi + 0x1d4]
sub ecx, eax
mov dword [edi + 0x1a0], ecx
mov dword [edi + 0x1b0], 0
add eax, dword [edi + 0x1d0]
push ecx
push eax
push dword [esp + 0x18]
call fcn.1010b9e0
add esp, 0xc
test eax, eax
jne 0x10109965
mov eax, dword [edi + 0x1a0]
mov dword [edi + 0x19c], eax
add dword [edi + 0x1e0], eax
mov dword [edi + 0x188], 0
cmp dword [esp + 0x20], 0
je 0x10109787
movzx eax, byte [esp + 0x24]
push eax
push dword [edi + 0x1b0]
push dword [edi + 0x1ac]
push edi
call fcn.100fa9c0
add esp, 0x10
test eax, eax
jns 0x101097b7
jmp 0x101098b3
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x1cc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
push eax
push edi
call fcn.10101ce0
add esp, 8
test eax, eax
js 0x101099b6
cmp dword [edi + 0x190], 0
jne 0x10109911
test byte [edi + 0x1d], 4
jne 0x101097d8
push dword [edi + 0x170]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [edi + 0x450]
mov bl, 1
test eax, eax
je 0x10109826
cmp dword [edi + 0x548], 0
je 0x10109808
cmp eax, 0xe
ja 0x101097fc
mov ecx, 0x40c0
bt ecx, eax
jb 0x10109826
mov dword [edi + 0x548], 0
jmp 0x10109824
cmp dword [esp + 0x1c], 2
jne 0x10109824
cmp dword [edi + 0x60c], 4
jne 0x10109824
mov eax, dword [esp + 0x18]
cmp dword [eax], eax
jne 0x101098d4
xor ebx, ebx
test byte [edi + 0x1d], 4
jne 0x1010983a
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test bl, bl
je 0x101092f2
jmp 0x10109911
mov esi, 7
xor ebx, ebx
inc ebx
cmp byte [esp], 0x17
je 0x101096a8
mov ebx, dword [esp]
mov edx, ebx
and dl, 0xe0
mov dword [esp + 8], 0xffffd037
cmp dl, 0x20
jne 0x1010994a
mov esi, dword [esp]
and esi, 0x10
jne 0x1010994a
mov edx, dword [esp]
mov esi, edx
and esi, 4
mov ebx, esi
shr ebx, 2
and edx, 8
shr esi, 1
cmp edx, 1
sbb esi, 0
add esi, 3
jmp 0x101096a8
mov dword [edi + 0x1e4], 1
jmp 0x10109752
jg 0x1010975c
mov esi, eax
jmp 0x101092b5
xor esi, esi
neg eax
sbb esi, esi
jmp 0x101092b5
mov dword [edi + 0x188], 0
jmp 0x101092b2
test byte [edi + 0x1d], 4
jne 0x10109905
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x10109905
mov esi, dword [edi + 0x38]
test byte [edi + 0x1d], 4
jne 0x10109901
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test esi, esi
jne 0x10109942
push 0
push 0xffffe892
jmp 0x101092aa
cmp dword [edi + 0xa24], 1
jne 0x1010992c
cmp dword [edi + 0x450], 0
jne 0x1010992c
push edi
call fcn.100f2e00
add esp, 4
mov dword [edi + 0x1a4], 0
mov eax, dword [edi + 0x190]
mov dword [edi + 0x1a8], eax
xor esi, esi
inc esi
jmp 0x101092b5
xor esi, esi
push esi
push dword [esp + 0xc]
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [edi + 0x1e0], esi
mov dword [edi + 0x1d4], esi
cmp dword [0x101f4f80], 0
je 0x10109a18
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101099fd
xor esi, esi
dec esi
cmp dword [eax + 0x28], 0xffffe892
jne 0x101092b5
push edi
call fcn.100f2e00
add esp, 4
push 0
push 0xffffe892
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101092b5
jne 0x10109965
jmp 0x101092b5
xor esi, esi
cmp dword [edi + 0x48], 0
cmove esi, eax
jmp 0x101092b5
push 0x16
push 2
push edi
call fcn.100f4470
add esp, 0xc
xor eax, eax
mov dword [edi + 0x188], eax
push eax
push 0xffffd019
jmp 0x101092aa
push 0x2f
push 2
push edi
call fcn.100f4470
add esp, 0xc
push 0
push 0xffffd01c
jmp 0x101092aa
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x10109982
call fcn.1001b2e0
jmp 0x10109972