Function at 0x100fa060
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, edi
call fcn.100f3ca0
test eax, eax
je 0x100fa0f2
movzx eax, word [edi + 0x58]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
cmp eax, 0x304
jb 0x100fa1ac
mov eax, dword [edi + 0xa1c]
test eax, eax
je 0x100fa1ac
cmp dword [eax + 0x10], 2
jne 0x100fa1ac
movzx esi, word [eax + 0x24]
test esi, esi
je 0x100fa1ac
mov ecx, 0x210
cmp word [edi + ecx], si
je 0x100fa159
add ecx, 4
cmp ecx, 0x32c
jne 0x100fa0ca
push 0
push 0xffffd016
call sym.nss3.dll_PR_SetError
add esp, 8
xor ecx, ecx
jmp 0x100fa15b
cmp dword [0x101f4f80], 0
je 0x100fa2f7
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100fa2c1
push 0
push dword [eax + 0x28]
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101f4f80], 0
je 0x100fa301
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100fa2dc
mov esi, dword [eax + 0x28]
push 0x28
push 2
push edi
call fcn.100f4470
add esp, 0xc
push 0
push esi
jmp 0x100fa25e
add ecx, edi
movzx edx, byte [edi + 0x3e0]
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.100f4120
add esp, 8
test eax, eax
je 0x100fa1ac
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, 2
jb 0x100fa1ac
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x1c], ecx
xor edx, edx
inc edx
mov ecx, esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi + edx - 1]
rol si, 8
movzx esi, si
cmp esi, ecx
mov esi, ecx
je 0x100fa226
add edx, 2
cmp edx, eax
jb 0x100fa18a
mov dword [ebp - 0x20], 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.100f4120
add esp, 8
test eax, eax
je 0x100fa20e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, 2
jb 0x100fa20e
movzx ecx, word [edi]
mov dword [ebp - 0x24], ecx
movzx ecx, cx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 4]
xor esi, esi
inc esi
movzx edi, word [edx + esi - 1]
rol di, 8
movzx edi, di
cmp edi, ecx
je 0x100fa21d
add esi, 2
cmp esi, eax
jb 0x100fa1f7
inc ebx
cmp ebx, 0x47
jne 0x100fa1b4
push 0
push 0xffffd002
jmp 0x100fa25e
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov word [edi + 0x490], si
xor eax, eax
cmp word [eax + 0x101c57c0], si
je 0x100fa27d
add eax, 0x14
cmp eax, 0x5a0
jne 0x100fa22f
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.10157a00
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [eax + 0x101c57c0]
mov dword [edi + 0x494], eax
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x101c5d60]
mov dword [edi + 0x48c], eax
or byte [edi + 0x54c], 2
test ebx, ebx
je 0x100fa2bd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.100f6a00
xor esi, esi
jmp 0x100fa269
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100fa113
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100fa141
call fcn.1001b2e0
jmp 0x100fa0ff
call fcn.1001b2e0
jmp 0x100fa12d