Function at 0x100afdb0
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 [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [edi + 3]
shl eax, 0x18
cmp eax, 0x82000000
jne 0x100afde0
push 0
push 0xffffe005
jmp 0x100aff6b
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100afdf4
cmp dword [eax + 0x30], 0
je 0x100afdf4
mov ebx, dword [edi + 0x14]
jmp 0x100afdf7
mov ebx, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100aff96
mov esi, eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
cmp dword [edi + 0x18], 0
je 0x100afe55
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.0x100afe3b
jmp dword [ecx*4 + 0x101a7ddc]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x82]
jmp 0x100aff04
mov esi, dword [edi + 0x20]
test esi, esi
je 0x100afeb2
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 0x100afe20
push eax
call fcn.100b1140
add esp, 4
jmp 0x100afeb7
cmp eax, 0x81000000
jne case.0x100afe3b.262
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0xa6]
jmp 0x100aff04
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 0x100afed6
cmp dword [eax + 0x30], 0
je 0x100afed6
push dword [edi + 0x14]
jmp 0x100afed9
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100aff73
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x92]
jmp 0x100aff04
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 0x100aff2b
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 0x100aff47
cmp dword [eax + 0x30], 0
je 0x100aff47
lea eax, [edi + 0x14]
jmp 0x100aff4a
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [edi + 0x2c], 0
test esi, esi
je 0x100aff8a
push esi
call fcn.100b1140
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.1014dc80
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 0x100aff76
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100afe0b