Function at 0x10107cc0
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 [0x101ef014]
xor eax, ebp
mov dword [esp + 0x40], eax
cmp dword [edi + 0x6bc], 0
je 0x10107d0a
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.10156ff0
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 0x10107d46
push dword [edi + 0x170]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
cmp dword [edi + 0x544], 0
jne 0x10108314
cmp dword [edi + 0x148], 0
jne 0x1010832a
mov eax, dword [edi + 0x60c]
mov dword [esp + 0x1c], eax
test byte [edi + 0x1d], 4
jne 0x10107d7e
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 0x10107da6
test byte [edi + 0x1f], 0x40
je 0x10107da6
cmp dword [edi + 0x450], 1
lea eax, [esp + 0x20]
cmove ecx, eax
cmp dword [edi + 0x48], 0
jne 0x10107cf5
cmp dword [edi + 0xa24], 1
jne 0x10107e1a
mov dword [edi + 0x188], 1
mov dword [edi + 0x19c], 0
mov eax, dword [edi + 0x1d4]
mov ecx, dword [edi + 0x1e0]
cmp ecx, eax
jne 0x101080a2
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 0x10108043
mov ecx, 0x480d
cmp eax, 0x480d
jb 0x10108060
jmp 0x1010807b
mov dword [esp + 8], ecx
mov edx, dword [edi + 0x188]
test edx, edx
je 0x10107e30
mov esi, dword [edi + 0x1a0]
jmp 0x10107e5a
mov dword [edi + 0x188], 1
movaps xmm0, xmmword [0x101c4720]
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.10109f30
add esp, 0x10
test eax, eax
jle 0x101082fa
mov ecx, dword [edi + 0x1a0]
mov esi, ecx
sub esi, eax
jb 0x10108305
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 0x10107eca
add dword [edi + 0x1b0], eax
cmp ecx, eax
jne 0x10107e71
cmp edx, 2
je 0x101082de
cmp edx, 1
jne 0x10107e6b
cmp dword [esp + 8], 0
je 0x10107f18
cmp dword [edi + 0x1e4], 0
jne 0x10107f18
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
test al, 0x40
jne 0x10107f18
mov edx, eax
and dl, 0xfc
mov cl, byte [edi + 0x1bd]
cmp dl, 0x14
mov edx, dword [esp + 8]
jne 0x1010800f
cmp cl, 3
jne 0x1010800f
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 0x10107f40
xor ebx, ebx
jmp 0x10107f6c
cmp esi, 0x4800
ja 0x10108404
mov bl, 1
cmp esi, 0x4101
jb 0x10107f65
movzx eax, word [edi + 0x58]
cmp eax, 0x304
jae 0x10108404
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 0x10107fb1
push esi
push dword [esp + 0x14]
call fcn.1010a300
add esp, 8
test eax, eax
jne 0x101082ed
mov esi, dword [edi + 0x1a0]
mov eax, dword [edi + 0x1ac]
mov dword [esp + 4], eax
test bl, bl
jne 0x10107ffc
cmp esi, 8
jbe 0x10108424
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 0x101082de
mov edx, dword [edi + 0x188]
jmp 0x10107e6b
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 0x10108039
mov al, byte [edi + 0x1be]
mov byte [edx + 4], al
mov al, 3
jmp 0x1010803b
mov al, 2
mov dword [esp], eax
jmp 0x10107f3c
cmp eax, 0x4105
mov eax, 0x4105
je 0x1010807b
push dword [esp + 0x14]
call fcn.1010a940
add esp, 4
mov ecx, 0x4105
push ecx
push dword [esp + 0x18]
call fcn.1010a300
add esp, 8
test eax, eax
jne 0x101083a5
mov eax, dword [edi + 0x1d8]
push dword [ebp + 0xc]
push eax
push dword [edi + 0x1d0]
push edi
call fcn.10109f30
add esp, 0x10
test eax, eax
jle 0x101083ef
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 0x101080c2
xor ebx, ebx
inc ebx
jmp 0x101080e8
movzx edx, byte [edx + ecx]
mov dword [esp], edx
cmp dl, 0x1a
ja 0x10108287
mov ebx, 0x4600000
mov edx, dword [esp]
bt ebx, edx
mov ebx, 1
jae 0x10108287
sub eax, ecx
mov dword [esp + 8], 0xffffe892
cmp eax, esi
jb 0x1010838a
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 0x1010814c
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 0x1010815a
jmp 0x1010838a
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.1010a420
add esp, 0xc
test eax, eax
jne 0x101083a5
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 0x101081c7
movzx eax, byte [esp + 0x24]
push eax
push dword [edi + 0x1b0]
push dword [edi + 0x1ac]
push edi
call fcn.100f9400
add esp, 0x10
test eax, eax
jns 0x101081f7
jmp 0x101082f3
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.10100720
add esp, 8
test eax, eax
js 0x101083f6
cmp dword [edi + 0x190], 0
jne 0x10108351
test byte [edi + 0x1d], 4
jne 0x10108218
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 0x10108266
cmp dword [edi + 0x548], 0
je 0x10108248
cmp eax, 0xe
ja 0x1010823c
mov ecx, 0x40c0
bt ecx, eax
jb 0x10108266
mov dword [edi + 0x548], 0
jmp 0x10108264
cmp dword [esp + 0x1c], 2
jne 0x10108264
cmp dword [edi + 0x60c], 4
jne 0x10108264
mov eax, dword [esp + 0x18]
cmp dword [eax], eax
jne 0x10108314
xor ebx, ebx
test byte [edi + 0x1d], 4
jne 0x1010827a
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test bl, bl
je 0x10107d32
jmp 0x10108351
mov esi, 7
xor ebx, ebx
inc ebx
cmp byte [esp], 0x17
je 0x101080e8
mov ebx, dword [esp]
mov edx, ebx
and dl, 0xe0
mov dword [esp + 8], 0xffffd037
cmp dl, 0x20
jne 0x1010838a
mov esi, dword [esp]
and esi, 0x10
jne 0x1010838a
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 0x101080e8
mov dword [edi + 0x1e4], 1
jmp 0x10108192
jg 0x1010819c
mov esi, eax
jmp 0x10107cf5
xor esi, esi
neg eax
sbb esi, esi
jmp 0x10107cf5
mov dword [edi + 0x188], 0
jmp 0x10107cf2
test byte [edi + 0x1d], 4
jne 0x10108345
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x10108345
mov esi, dword [edi + 0x38]
test byte [edi + 0x1d], 4
jne 0x10108341
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test esi, esi
jne 0x10108382
push 0
push 0xffffe892
jmp 0x10107cea
cmp dword [edi + 0xa24], 1
jne 0x1010836c
cmp dword [edi + 0x450], 0
jne 0x1010836c
push edi
call fcn.100f1840
add esp, 4
mov dword [edi + 0x1a4], 0
mov eax, dword [edi + 0x190]
mov dword [edi + 0x1a8], eax
xor esi, esi
inc esi
jmp 0x10107cf5
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 [0x101f2f50], 0
je 0x10108458
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010843d
xor esi, esi
dec esi
cmp dword [eax + 0x28], 0xffffe892
jne 0x10107cf5
push edi
call fcn.100f1840
add esp, 4
push 0
push 0xffffe892
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10107cf5
jne 0x101083a5
jmp 0x10107cf5
xor esi, esi
cmp dword [edi + 0x48], 0
cmove esi, eax
jmp 0x10107cf5
push 0x16
push 2
push edi
call fcn.100f2eb0
add esp, 0xc
xor eax, eax
mov dword [edi + 0x188], eax
push eax
push 0xffffd019
jmp 0x10107cea
push 0x2f
push 2
push edi
call fcn.100f2eb0
add esp, 0xc
push 0
push 0xffffd01c
jmp 0x10107cea
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x101083c2
call fcn.100029d0
jmp 0x101083b2