Function at 0x101002b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, edi
call fcn.100fa0e0
test eax, eax
je 0x10100342
movzx eax, word [edi + 0x58]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
cmp eax, 0x304
jb 0x10100400
mov eax, dword [edi + 0x9f0]
test eax, eax
je 0x10100400
cmp dword [eax + 0x10], 2
jne 0x10100400
movzx esi, word [eax + 0x24]
test esi, esi
je 0x10100400
mov ecx, 0x210
cmp word [edi + ecx], si
je 0x101003a9
add ecx, 4
cmp ecx, 0x32c
jne 0x1010031a
push 0
push 0xffffd016
call sym.nss3.dll_PR_SetError
add esp, 8
xor ecx, ecx
jmp 0x101003ab
cmp dword [0x101de200], 0
je 0x1010054d
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10100517
push 0
push dword [eax + 0x28]
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101de200], 0
je 0x10100557
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10100532
mov esi, dword [eax + 0x28]
push 0x28
push 2
push edi
call fcn.100fa900
add esp, 0xc
push 0
push esi
jmp 0x101004b4
add ecx, edi
movzx edx, byte [edi + 0x3e0]
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.100fa5b0
add esp, 8
test eax, eax
je 0x10100400
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, 2
jb 0x10100400
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x1c], ecx
mov edx, 3
mov ecx, dword [ebp - 0x1c]
movzx esi, word [ecx + edx - 3]
shl esi, 0x10
bswap esi
mov ecx, dword [ebp - 0x20]
cmp esi, ecx
je 0x1010047c
cmp edx, eax
jae 0x10100400
add edx, 2
jmp 0x101003df
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
lea edi, [eax + ebx*4]
add edi, 0x210
movzx edx, byte [eax + 0x3e0]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100fa5b0
add esp, 8
test eax, eax
je 0x10100464
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, 2
jb 0x10100464
movzx ecx, word [edi]
mov dword [ebp - 0x20], ecx
movzx ecx, cx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 4]
mov esi, 3
movzx edi, word [edx + esi - 3]
shl edi, 0x10
bswap edi
cmp edi, ecx
je 0x10100473
cmp esi, eax
jae 0x10100464
add esi, 2
jmp 0x1010044d
inc ebx
cmp ebx, 0x47
jne 0x10100408
push 0
push 0xffffd002
jmp 0x101004b4
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov word [edi + 0x490], cx
xor eax, eax
cmp word [eax + 0x101b00b0], cx
je 0x101004d3
add eax, 0x14
cmp eax, 0x5a0
jne 0x10100485
xor esi, esi
push esi
push 0xffffd016
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [edi + 0x494], esi
push esi
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [eax + 0x101b00b0]
mov dword [edi + 0x494], eax
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x101b0650]
mov dword [edi + 0x48c], eax
or byte [edi + 0x540], 2
test ebx, ebx
je 0x10100513
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.100fcd30
xor esi, esi
jmp 0x101004bf
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10100363
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10100391
call fcn.100745e0
jmp 0x1010034f
call fcn.100745e0
jmp 0x1010037d