Function at 0x100a9a50
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [edi + 3]
shl eax, 0x18
cmp eax, 0x82000000
jne 0x100a9a80
push 0
push 0xffffe005
jmp 0x100a9c0b
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a9a94
cmp dword [eax + 0x30], 0
je 0x100a9a94
mov ebx, dword [edi + 0x14]
jmp 0x100a9a97
mov ebx, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a9c36
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
cmp dword [edi + 0x18], 0
je 0x100a9af5
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.0x100a9adb
jmp dword [ecx*4 + 0x101bd36c]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x82]
jmp 0x100a9ba4
mov esi, dword [edi + 0x20]
test esi, esi
je 0x100a9b52
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 0x100a9ac0
push eax
call fcn.100aaef0
add esp, 4
jmp 0x100a9b57
cmp eax, 0x81000000
jne case.0x100a9adb.262
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0xa6]
jmp 0x100a9ba4
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 0x100a9b76
cmp dword [eax + 0x30], 0
je 0x100a9b76
push dword [edi + 0x14]
jmp 0x100a9b79
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a9c13
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x92]
jmp 0x100a9ba4
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 0x100a9bcb
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 0x100a9be7
cmp dword [eax + 0x30], 0
je 0x100a9be7
lea eax, [edi + 0x14]
jmp 0x100a9bea
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [edi + 0x2c], 0
test esi, esi
je 0x100a9c2a
push esi
call fcn.100aaef0
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.10157a00
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 0x100a9c16
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100a9aad