Function at 0x100a8490
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [edi + 3]
shl eax, 0x18
cmp eax, 0x82000000
jne 0x100a84c0
push 0
push 0xffffe005
jmp 0x100a864b
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a84d4
cmp dword [eax + 0x30], 0
je 0x100a84d4
mov ebx, dword [edi + 0x14]
jmp 0x100a84d7
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a8676
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
cmp dword [edi + 0x18], 0
je 0x100a8535
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov eax, dword [edi]
mov esi, 0x91
lea ecx, [eax - 0x104]
cmp ecx, 6
ja case.default.0x100a851b
jmp dword [ecx*4 + 0x101bb18c]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x82]
jmp 0x100a85e4
mov esi, dword [edi + 0x20]
test esi, esi
je 0x100a8592
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
mov ebx, dword [edi + 0x10]
call dword [section..00cfg]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
push ebx
call ecx
add esp, 0x14
test eax, eax
je 0x100a8500
push eax
call fcn.100a9930
add esp, 4
jmp 0x100a8597
cmp eax, 0x81000000
jne case.0x100a851b.262
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0xa6]
jmp 0x100a85e4
mov eax, 0xffffe001
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a85b6
cmp dword [eax + 0x30], 0
je 0x100a85b6
push dword [edi + 0x14]
jmp 0x100a85b9
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a8653
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x92]
jmp 0x100a85e4
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0xb6]
mov ebx, edx
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push ebx
jmp 0x100a860b
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0xce]
call dword [section..00cfg]
push ebx
push dword [ebp + 0xc]
push esi
call ecx
add esp, 0xc
mov esi, eax
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a8627
cmp dword [eax + 0x30], 0
je 0x100a8627
lea eax, [edi + 0x14]
jmp 0x100a862a
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [edi + 0x2c], 0
test esi, esi
je 0x100a866a
push esi
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
xor esi, esi
jmp 0x100a8656
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100a84ed