Function at 0x1010ed00
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 [0x101db014]
xor eax, ebp
mov dword [esp + 0x40], eax
cmp dword [edi + 0x69c], 0
je 0x1010ed4a
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.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [edi + 0x1ac]
lea eax, [edi + 0x1bc]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x1d0]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x60c]
mov dword [esp + 0x14], eax
mov dword [esp + 8], ebx
test byte [edi + 0x1d], 4
jne 0x1010ed86
push dword [edi + 0x170]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
cmp dword [edi + 0x538], 0
jne 0x1010f2fd
cmp dword [edi + 0x148], 0
jne 0x1010f313
mov eax, dword [edi + 0x600]
mov dword [esp + 0x1c], eax
test byte [edi + 0x1d], 4
jne 0x1010edbe
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 0x1010edf0
test byte [edi + 0x1f], 0x40
mov ecx, 0
je 0x1010edf0
cmp dword [edi + 0x450], 1
mov ecx, 0
lea eax, [esp + 0x20]
cmove ecx, eax
cmp dword [edi + 0x48], 0
jne 0x1010ed35
cmp dword [edi + 0x9f8], 1
jne 0x1010eeac
mov dword [edi + 0x188], 1
mov dword [edi + 0x19c], 0
mov eax, dword [edi + 0x1d4]
mov ecx, dword [edi + 0x1e0]
cmp ecx, eax
jne 0x1010ee8c
xor eax, eax
mov dword [edi + 0x1e0], eax
mov dword [edi + 0x1d4], eax
mov eax, dword [edi + 0x1d8]
cmp eax, 0x480c
ja 0x1010ee65
push 0x480d
push dword [esp + 0x1c]
call fcn.10111390
add esp, 8
test eax, eax
jne 0x1010f38f
mov eax, dword [edi + 0x1d8]
push dword [ebp + 0xc]
push eax
push dword [edi + 0x1d0]
push edi
call fcn.10110fa0
add esp, 0x10
test eax, eax
jle 0x1010f3dd
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 0x1010eec8
xor ebx, ebx
inc ebx
jmp 0x1010eeee
mov dword [esp], ecx
mov edx, dword [edi + 0x188]
test edx, edx
je 0x1010ef54
mov ecx, dword [edi + 0x1a0]
jmp 0x1010ef7e
movzx edx, byte [edx + ecx]
mov dword [esp], edx
cmp dl, 0x1a
ja 0x1010f27e
mov ebx, 0x4600000
mov edx, dword [esp]
bt ebx, edx
mov ebx, 1
jae 0x1010f27e
sub eax, ecx
cmp eax, esi
jb 0x1010f373
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 0x1010f142
movzx ecx, word [esi + edi + 0x1ba]
shl ecx, 0x10
bswap ecx
mov edx, dword [edi + 0x1d4]
sub edx, eax
mov dword [edi + 0x1a0], ecx
cmp edx, ecx
mov ebx, dword [esp + 8]
jae 0x1010f154
jmp 0x1010f373
mov dword [edi + 0x188], 1
movaps xmm0, xmmword [0x101b1200]
movups xmmword [edi + 0x19c], xmm0
mov dword [edi + 0x1b0], 0
mov ecx, 5
xor edx, edx
inc edx
mov esi, dword [ebx]
mov dword [esp + 4], 0
mov ebx, dword [edi + 0x19c]
cmp edx, 1
mov eax, esi
cmove eax, dword [esp + 0xc]
add eax, ebx
push dword [ebp + 0xc]
push ecx
push eax
push edi
call fcn.10110fa0
add esp, 0x10
test eax, eax
jle 0x1010f2e5
mov ecx, dword [edi + 0x1a0]
sub ecx, eax
jb 0x1010f2ee
mov ebx, dword [edi + 0x19c]
add ebx, eax
mov dword [edi + 0x19c], ebx
mov dword [edi + 0x1a0], ecx
mov edx, dword [edi + 0x188]
cmp edx, 2
jne 0x1010efe3
add dword [edi + 0x1b0], eax
test ecx, ecx
jne 0x1010ef8e
cmp edx, 2
mov ebx, dword [esp + 8]
je 0x1010f2c9
xor ecx, ecx
cmp edx, 1
jne 0x1010ef88
cmp dword [esp], 0
je 0x1010f032
cmp dword [edi + 0x1e4], 0
jne 0x1010f032
mov eax, dword [esp + 0xc]
movzx ecx, byte [eax]
test cl, 0x40
jne 0x1010f032
mov edx, ecx
and dl, 0xfc
mov al, byte [edi + 0x1bd]
cmp dl, 0x14
jne 0x1010f10a
cmp al, 3
jne 0x1010f10a
movzx eax, word [edi + 0x1bf]
shl eax, 0x10
bswap eax
mov dword [edi + 0x1a0], eax
mov dword [edi + 0x1cc], 5
cmp byte [esp + 4], 0
je 0x1010f059
xor edx, edx
jmp 0x1010f06e
mov dword [esp + 4], 0
cmp eax, 0x4801
jae 0x1010f418
mov dl, 1
mov dword [edi + 0x188], 2
xor ecx, ecx
mov dword [edi + 0x19c], ecx
mov dword [edi + 0x1b0], ecx
cmp eax, dword [edi + 0x1b4]
jbe 0x1010f0aa
mov dword [esp + 0x10], edx
push eax
push ebx
call fcn.10111390
add esp, 8
test eax, eax
jne 0x1010f2d8
mov esi, dword [ebx]
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x1a0]
test dl, dl
jne 0x1010f0f7
cmp ecx, 8
jbe 0x1010f3ff
movzx eax, byte [esp + 4]
mov ecx, 5
sub ecx, eax
mov dword [edi + 0x1b0], ecx
add eax, edi
add eax, 0x1bc
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [edi + 0x1a0]
mov eax, dword [edi + 0x1b0]
sub ecx, eax
mov dword [edi + 0x1a0], ecx
add esi, eax
test ecx, ecx
je 0x1010f2c9
mov edx, dword [edi + 0x188]
jmp 0x1010ef88
movzx edx, al
mov eax, ecx
and eax, 0x7f
shl eax, 8
or eax, edx
mov dword [edi + 0x1a0], eax
mov edx, dword [esp]
mov dword [edx], 1
test cl, cl
js 0x1010f137
mov cl, byte [edi + 0x1be]
mov byte [edx + 4], cl
mov cl, 3
jmp 0x1010f139
mov cl, 2
mov dword [esp + 4], ecx
jmp 0x1010f055
mov ecx, dword [edi + 0x1d4]
sub ecx, eax
mov dword [edi + 0x1a0], ecx
mov ebx, dword [esp + 8]
mov dword [edi + 0x1b0], 0
add eax, dword [edi + 0x1d0]
push ecx
push eax
push ebx
call fcn.10111410
add esp, 0xc
test eax, eax
jne 0x1010f38f
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 0x1010f1be
movzx eax, byte [esp + 0x24]
push eax
push dword [edi + 0x1b0]
push dword [edi + 0x1ac]
push edi
call fcn.10100c20
add esp, 0x10
test eax, eax
jns 0x1010f1ea
jmp 0x1010f2de
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x1cc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x28]
push eax
push edi
call fcn.10107a20
add esp, 8
test eax, eax
js 0x1010f3e4
cmp dword [edi + 0x190], 0
jne 0x1010f33a
test byte [edi + 0x1d], 4
jne 0x1010f20b
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 0x1010f259
cmp dword [edi + 0x53c], 0
je 0x1010f23b
cmp eax, 0xe
ja 0x1010f22f
mov ecx, 0x40c0
bt ecx, eax
jb 0x1010f259
mov dword [edi + 0x53c], 0
jmp 0x1010f257
cmp dword [esp + 0x1c], 2
jne 0x1010f257
cmp dword [edi + 0x600], 4
jne 0x1010f257
mov eax, dword [esp + 0x14]
cmp dword [eax], eax
jne 0x1010f2fd
xor ebx, ebx
test byte [edi + 0x1d], 4
jne 0x1010f26d
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test bl, bl
mov ebx, dword [esp + 8]
je 0x1010ed72
jmp 0x1010f33a
mov esi, 7
xor ebx, ebx
inc ebx
cmp byte [esp], 0x17
je 0x1010eeee
mov ebx, dword [esp]
and bl, 0xe0
cmp bl, 0x20
jne 0x1010f3f2
test byte [esp], 0x10
jne 0x1010f3f2
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 0x1010eeee
mov dword [edi + 0x1e4], 1
jmp 0x1010f189
jg 0x1010f193
mov esi, eax
jmp 0x1010ed35
neg eax
sbb esi, esi
jmp 0x1010ed35
mov dword [edi + 0x188], 0
jmp 0x1010ed32
test byte [edi + 0x1d], 4
jne 0x1010f32e
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x1010f32e
mov esi, dword [edi + 0x38]
test byte [edi + 0x1d], 4
jne 0x1010f32a
push dword [edi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test esi, esi
jne 0x1010f36b
push 0
push 0xffffe892
jmp 0x1010ed2a
cmp dword [edi + 0x9f8], 1
jne 0x1010f355
cmp dword [edi + 0x450], 0
jne 0x1010f355
push edi
call fcn.100f9220
add esp, 4
mov dword [edi + 0x1a4], 0
mov eax, dword [edi + 0x190]
mov dword [edi + 0x1a8], eax
xor esi, esi
inc esi
jmp 0x1010ed35
xor esi, esi
push esi
push 0xffffe892
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [edi + 0x1e0], esi
mov dword [edi + 0x1d4], esi
cmp dword [0x101de200], 0
je 0x1010f453
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010f438
xor esi, esi
dec esi
cmp dword [eax + 0x28], 0xffffe892
jne 0x1010ed35
push edi
call fcn.100f9220
add esp, 4
push 0
push 0xffffe892
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1010ed35
jne 0x1010f38f
jmp 0x1010ed35
xor esi, esi
cmp dword [edi + 0x48], 0
cmove esi, eax
jmp 0x1010ed35
xor esi, esi
push esi
push 0xffffd037
jmp 0x1010f37b
push 0x2f
push 2
push edi
call fcn.100fa900
add esp, 0xc
push 0
push 0xffffd01c
jmp 0x1010ed2a
push 0x16
push 2
push edi
call fcn.100fa900
add esp, 0xc
xor eax, eax
mov dword [edi + 0x188], eax
push eax
push 0xffffd019
jmp 0x1010ed2a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1010f3b0
call fcn.100745e0
jmp 0x1010f39c