Function at 0x1010adf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1c8
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x1c0], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x3b4]
movzx esi, word [eax + 0x10]
lea ebx, [ebp + 0x10]
lea edx, [ebp + 0xc]
lea eax, [esp + 0x31]
push ebx
push edx
push 3
push eax
push ecx
call fcn.100fd210
add esp, 0x14
mov edi, 0xffffd01f
test eax, eax
jne 0x1010af6a
mov word [esp + 4], si
mov ecx, 0x28
mov esi, 0xffffe08d
cmp byte [esp + 0x31], 3
jne 0x1010af5a
movzx eax, word [esp + 0x32]
shl eax, 0x10
bswap eax
push eax
call fcn.1011a470
add esp, 4
test eax, eax
je 0x1010af55
cmp dword [eax + 8], 4
jne 0x1010af55
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 1
push eax
push dword [ebp + 8]
call fcn.100fd330
add esp, 0x14
test eax, eax
jne 0x1010af6a
cmp dword [esp + 0x18], 0
mov ecx, 0x28
je 0x1010af90
mov eax, dword [esp + 0xc]
cmp dword [eax], 0x1d
je 0x1010aee2
mov eax, dword [esp + 0x14]
mov esi, 0xffffe08e
cmp byte [eax], 4
jne 0x1010af5a
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3b4]
movzx eax, word [eax + 0x10]
cmp eax, 0x303
jne 0x1010af9c
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.100fd980
add esp, 0x10
test eax, eax
jne 0x1010af2f
mov eax, 0xd4
add eax, dword [esi + 0x78]
push eax
push dword [esp + 0x20]
push esi
call fcn.100fd760
add esp, 0xc
test eax, eax
je 0x1010b0e1
cmp dword [0x101de200], 0
je 0x1010b1e1
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010b1ae
mov esi, dword [eax + 0x28]
jmp 0x1010af95
mov ecx, 0x28
push ecx
push 2
push dword [ebp + 8]
call fcn.100fa900
add esp, 0xc
mov edi, esi
push 0
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [esp + 0x1c0]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 0xffffd01f
mov ecx, 0x2f
jmp 0x1010af5a
mov dword [esp + 0x1c], 0
mov dword [esp + 8], 0
lea ecx, [esp + 0x20]
push ebx
lea eax, [ebp + 0xc]
push eax
push 2
push ecx
push esi
call fcn.100fd330
add esp, 0x14
mov edi, 0xffffd01f
test eax, eax
jne 0x1010af6a
cmp dword [ebp + 0x10], 0
je 0x1010afef
movzx eax, word [esp + 4]
xor ecx, ecx
cmp eax, 0x300
seta cl
lea ecx, [ecx + ecx*2]
add ecx, 0x2f
mov esi, 0xffffd01f
jmp 0x1010af5a
movzx eax, word [esp + 4]
cmp eax, 0x300
mov eax, 0x33
mov ecx, 0x28
cmova ecx, eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
lea edi, [esp + 0x7d]
lea esi, [ebx + 0x44]
cmp esi, 0x144
jb 0x1010b038
push esi
mov edi, edx
call sym.nss3.dll_PORT_Alloc_Util
mov edx, edi
add esp, 4
mov edi, eax
test eax, eax
je 0x1010b0c9
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x3f0]
add ecx, 0x410
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx + 0x10]
movups xmmword [edi + 0x10], xmm1
movups xmmword [edi], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [edi + 0x20], xmm0
movups xmmword [edi + 0x30], xmm1
movzx eax, word [esp + 0x31]
mov word [edi + 0x40], ax
mov al, byte [esp + 0x33]
mov byte [edi + 0x42], al
mov byte [edi + 0x43], bl
lea eax, [edi + 0x44]
push ebx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ebx, [esp + 0x34]
push ebx
push esi
push edi
push dword [esp + 0x14]
call fcn.100fb160
add esp, 0x10
mov esi, eax
lea eax, [esp + 0x7d]
cmp edi, eax
je 0x1010b0ac
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
lea eax, [esp + 0x20]
jne 0x1010b0c9
push eax
push ebx
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.100fb100
add esp, 0x10
test eax, eax
je 0x1010b0f6
push 0xffffd044
call fcn.10111ec0
add esp, 4
mov esi, eax
mov ecx, dword [esp + 4]
jmp 0x1010af5a
push dword [esp + 0x1c]
call fcn.100fd410
add esp, 4
mov dword [esp + 8], eax
jmp 0x1010afac
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
test eax, eax
je 0x1010b17c
mov esi, eax
push 0xac
push eax
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x1010b186
mov edi, eax
add eax, 4
push 0xa8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi], esi
push dword [esp + 0xc]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
call fcn.1010aca0
add esp, 0x10
test eax, eax
je 0x1010b19b
cmp dword [0x101de200], 0
je 0x1010b1eb
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010b1c9
mov edi, dword [eax + 0x28]
push 0x28
push 2
push dword [ebp + 8]
call fcn.100fa900
add esp, 0xc
jmp 0x1010b18b
mov edi, 0xffffe013
jmp 0x1010af6a
mov edi, 0xffffe013
push 0
push esi
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
jmp 0x1010af6a
xor esi, esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], edi
jmp 0x1010af78
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1010af50
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1010b168
call fcn.100745e0
jmp 0x1010af3c
call fcn.100745e0
jmp 0x1010b158